Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: show a spinner on a busy submit button instead of swapping its label

Twenty save, link, create, send, run, load and log-in buttons changed their label to
"saving…" or similar while a request ran, so the button changed width under the
cursor. They now use Button's busy prop like the message box and the broadcast
dialog do: a spinner covers the label, which keeps its space. No behaviour
change; the buttons are disabled while busy as before.
This commit is contained in:
iris 2026-11-25 19:59:21 +01:00 • committed by mara
commit 5dfff854d5

View file

@ -213,8 +213,13 @@ export function BroadcastComposer() {
onInput={setBody}
/>
<div class="ui-broadcast-send">
<Button variant="primary" type="submit" disabled={!canSend}>
{sending ? "sending…" : sendLabel(targets.length)}
<Button
busy={sending}
variant="primary"
type="submit"
disabled={!canSend}
>
{sendLabel(targets.length)}
</Button>
{overCap && (
<span class="ui-broadcast-cap" role="status">