From 93675c28d98ad5494fb76934012a1e572f2c225c Mon Sep 17 00:00:00 2001 From: christopher Date: Fri, 17 Oct 2025 15:12:19 -0300 Subject: [PATCH] Add scroll-to-bottom button and context usage indicator with styling improvements --- web/index.html | 334 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 325 insertions(+), 9 deletions(-) diff --git a/web/index.html b/web/index.html index d5ce63df1..4ea272385 100644 --- a/web/index.html +++ b/web/index.html @@ -213,6 +213,7 @@ max-width: 900px; margin: 0 auto; width: 100%; + position: relative; } #emptyState { @@ -612,6 +613,93 @@ background: rgba(255, 215, 0, 0.5); } + /* NEW STYLES FOR IMPROVEMENTS */ + + /* Scroll to bottom button */ + .scroll-to-bottom { + position: absolute; + bottom: 20px; + right: 20px; + width: 40px; + height: 40px; + background: rgba(255, 215, 0, 0.8); + border: none; + border-radius: 50%; + color: #0a0e27; + font-size: 18px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); + transition: all 0.3s ease; + z-index: 10; + } + + .scroll-to-bottom:hover { + background: rgba(255, 215, 0, 1); + transform: scale(1.1); + } + + /* Continue button for interrupted responses */ + .continue-button { + display: inline-block; + background: rgba(255, 215, 0, 0.2); + border: 1px solid rgba(255, 215, 0, 0.4); + border-radius: 8px; + padding: 8px 16px; + color: #ffd700; + font-weight: 600; + cursor: pointer; + margin-top: 10px; + transition: all 0.3s ease; + font-size: 14px; + } + + .continue-button:hover { + background: rgba(255, 215, 0, 0.3); + box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); + } + + /* Context usage indicator */ + .context-indicator { + position: fixed; + bottom: 90px; + right: 20px; + width: 120px; + background: rgba(10, 14, 39, 0.9); + border: 1px solid rgba(255, 215, 0, 0.3); + border-radius: 8px; + padding: 10px; + font-size: 12px; + text-align: center; + z-index: 100; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); + } + + .context-progress { + height: 6px; + background: rgba(255, 255, 255, 0.1); + border-radius: 3px; + margin-top: 5px; + overflow: hidden; + } + + .context-progress-bar { + height: 100%; + background: #90ee90; + border-radius: 3px; + transition: width 0.3s ease, background-color 0.3s ease; + } + + .context-progress-bar.warning { + background: #ffd700; + } + + .context-progress-bar.danger { + background: #ff6b6b; + } + /* Mobile Responsiveness */ @media (max-width: 768px) { .sidebar { @@ -676,6 +764,20 @@ width: 14px; height: 14px; } + + .scroll-to-bottom { + width: 36px; + height: 36px; + font-size: 16px; + bottom: 15px; + right: 15px; + } + + .context-indicator { + bottom: 70px; + right: 15px; + width: 100px; + } } @media (max-width: 480px) { @@ -707,6 +809,18 @@ .empty-title { font-size: 20px; } + + .scroll-to-bottom { + width: 32px; + height: 32px; + font-size: 14px; + } + + .context-indicator { + bottom: 65px; + right: 10px; + width: 90px; + } } @@ -765,6 +879,19 @@ + + + + + - + \ No newline at end of file