xP: improve the activity indicator

Also adjust the Makefile to reflect resource embedding.
This commit is contained in:
2026-01-10 12:41:37 +01:00
parent 45b1b16c77
commit 6c38c3a526
3 changed files with 8 additions and 3 deletions

View File

@@ -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 \

View File

@@ -66,6 +66,9 @@ body {
bottom: -1px;
background: #ccc;
}
.invisible {
visibility: hidden;
}
.toolbar {
display: flex;

View File

@@ -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),