From 8996173b3f066996e07bf4257ff61024da250609 Mon Sep 17 00:00:00 2001 From: Laura Date: Sun, 10 Aug 2025 14:54:14 +0200 Subject: [PATCH] better loading --- static/css/chat.css | 10 +++++++--- static/css/icons/loading.svg | 7 ------- static/css/icons/spinner.svg | 7 +++++++ static/css/markdown.css | 4 +--- 4 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 static/css/icons/loading.svg create mode 100644 static/css/icons/spinner.svg diff --git a/static/css/chat.css b/static/css/chat.css index 0200176..4bade32 100644 --- a/static/css/chat.css +++ b/static/css/chat.css @@ -202,7 +202,8 @@ body { .reasoning .toggle { position: relative; - padding: 0 20px; + padding: 0 22px; + padding-left: 26px; font-weight: 600; font-size: 14px; } @@ -252,8 +253,11 @@ body { } .message.reasoning .reasoning button.toggle::before { - animation: rotating 2s linear infinite; - background-image: url(icons/loading.svg); + animation: rotating 1.2s linear infinite; + background-image: url(icons/spinner.svg); + top: -1px; + width: 18px; + height: 18px; } .message .text::before { diff --git a/static/css/icons/loading.svg b/static/css/icons/loading.svg deleted file mode 100644 index 207bcaf..0000000 --- a/static/css/icons/loading.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/static/css/icons/spinner.svg b/static/css/icons/spinner.svg new file mode 100644 index 0000000..c898c20 --- /dev/null +++ b/static/css/icons/spinner.svg @@ -0,0 +1,7 @@ + + + + + + spinner-one-third + \ No newline at end of file diff --git a/static/css/markdown.css b/static/css/markdown.css index 6d34145..b6689f1 100644 --- a/static/css/markdown.css +++ b/static/css/markdown.css @@ -105,19 +105,16 @@ .markdown th { background: rgba(165, 173, 203, 0.07); - /* subtle neutral tint */ font-weight: 600; color: #CAD3F5; } .markdown tr:nth-child(even) td { background: rgba(165, 173, 203, 0.03); - /* very soft zebra */ } .markdown tr:hover td { background: rgba(165, 173, 203, 0.05); - /* gentle hover */ } .markdown code, @@ -140,6 +137,7 @@ border-radius: 6px; line-height: 18px; overflow: hidden; + tab-size: 4; } .markdown pre code {