From 6c38c3a526dd68fb4f8ef80b38bb64d5fe93920f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 10 Jan 2026 12:41:37 +0100 Subject: xP: improve the activity indicator Also adjust the Makefile to reflect resource embedding. --- xP/Makefile | 2 +- xP/public/xP.css | 3 +++ xP/public/xP.js | 6 ++++-- 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 +// Copyright (c) 2022 - 2026, Přemysl Eric Janouch // 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), -- cgit v1.2.3-70-g09d2