From fcbec74521088b5295493de475d83fb50f4628fa Mon Sep 17 00:00:00 2001 From: geronimi73 Date: Thu, 2 Apr 2026 13:27:54 +0200 Subject: [PATCH] spinner --- src/ifcchat/app.js | 4 ++++ src/ifcchat/index.html | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/ifcchat/app.js b/src/ifcchat/app.js index 642ef275df..d9c6d6bcd6 100644 --- a/src/ifcchat/app.js +++ b/src/ifcchat/app.js @@ -61,6 +61,10 @@ function setBusy(isBusy, reason = "") { browseBtn.tabIndex = isBusy ? -1 : 0; } + sendBtn.innerHTML = isBusy + ? `` + : `Send send`; + setStatus(isBusy ? (reason || "Working…") : "Ready"); } diff --git a/src/ifcchat/index.html b/src/ifcchat/index.html index 2bf0b6c4f1..77a57c07a8 100644 --- a/src/ifcchat/index.html +++ b/src/ifcchat/index.html @@ -113,7 +113,18 @@ border-radius: 20px; padding: 10px; display: flex; - width: 50%; + width: 100%; + } + + @keyframes spin { to { transform: rotate(360deg); } } + .spinner { + width: 18px; + height: 18px; + border: 2px solid #aaa; + border-top-color: #333; + border-radius: 50%; + animation: spin 0.7s linear infinite; + display: inline-block; } .status {