aboutsummaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2026-01-10 12:41:37 +0100
committerPřemysl Eric Janouch <p@janouch.name>2026-01-10 12:43:53 +0100
commit6c38c3a526dd68fb4f8ef80b38bb64d5fe93920f (patch)
treec739b8f25304548f140bab4ebe384148e24909ba /xP
parent45b1b16c777c55b9c0f9f055f19d55b2bcdf8162 (diff)
downloadxK-6c38c3a526dd68fb4f8ef80b38bb64d5fe93920f.tar.gz
xK-6c38c3a526dd68fb4f8ef80b38bb64d5fe93920f.tar.xz
xK-6c38c3a526dd68fb4f8ef80b38bb64d5fe93920f.zip
xP: improve the activity indicator
Also adjust the Makefile to reflect resource embedding.
Diffstat (limited to 'xP')
-rw-r--r--xP/Makefile2
-rw-r--r--xP/public/xP.css3
-rw-r--r--xP/public/xP.js6
3 files changed, 8 insertions, 3 deletions
diff --git a/xP/Makefile b/xP/Makefile
index 6ecf298..e2d3abd 100644
--- a/xP/Makefile
+++ b/xP/Makefile
@@ -6,7 +6,7 @@ tools = ../liberty/tools
outputs = xP proto.go public/proto.js public/mithril.js
all: $(outputs) public/ircfmt.woff2
-xP: xP.go proto.go
+xP: xP.go proto.go public/proto.js public/mithril.js public/xP.css public/xP.js
go build -o $@
proto.go: $(tools)/lxdrgen.awk $(tools)/lxdrgen-go.awk ../xC.lxdr
$(AWK) -f $(tools)/lxdrgen.awk -f $(tools)/lxdrgen-go.awk \
diff --git a/xP/public/xP.css b/xP/public/xP.css
index bdd355e..bf5a66e 100644
--- a/xP/public/xP.css
+++ b/xP/public/xP.css
@@ -66,6 +66,9 @@ body {
bottom: -1px;
background: #ccc;
}
+.invisible {
+ visibility: hidden;
+}
.toolbar {
display: flex;
diff --git a/xP/public/xP.js b/xP/public/xP.js
index 33d7d2a..6806081 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2022 - 2025, Přemysl Eric Janouch <p@janouch.name>
+// Copyright (c) 2022 - 2026, Přemysl Eric Janouch <p@janouch.name>
// SPDX-License-Identifier: 0BSD
import * as Relay from './proto.js'
@@ -1127,7 +1127,9 @@ let Main = {
overlay,
m('.title', {}, [
m('span', [
- rpc.busy ? '⋯ ' : undefined,
+ // Midline Horizontal Ellipsis, No-Break Space
+ m('span', {class: rpc.busy ? undefined : 'invisible'},
+ `\u22EF\u00A0`),
m('b', {}, `xP`),
]),
m(Topic),