From 24cbce40c44663ba7a2b8da65b43026f5d205122 Mon Sep 17 00:00:00 2001 From: Meleki Date: Sat, 28 Feb 2026 20:09:12 +0100 Subject: [PATCH] =?UTF-8?q?Globale=20.icon-btn=20Klasse=20f=C3=BCr=20alle?= =?UTF-8?q?=20Icon-only=20Buttons,=20Hover-Filter,=20Theme-Anpassungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/css/base.css | 15 +++++++++++++++ wwwroot/css/chat.css | 15 ++------------- wwwroot/css/dashboard.css | 1 + wwwroot/css/form.css | 6 ++---- wwwroot/css/theme.css | 3 ++- wwwroot/index.html | 18 +++++++++--------- wwwroot/js/file-explorer.js | 8 ++++---- wwwroot/js/pages/session-page.js | 2 +- wwwroot/js/ui.js | 2 +- 9 files changed, 37 insertions(+), 33 deletions(-) diff --git a/wwwroot/css/base.css b/wwwroot/css/base.css index fbb25f2..2ca4ad1 100644 --- a/wwwroot/css/base.css +++ b/wwwroot/css/base.css @@ -61,6 +61,7 @@ button:not(:disabled) { button:not(:disabled):hover, select:hover, input:hover, textarea:hover { border-color: var(--primary); + filter: var(--hover-filter); } button:disabled { @@ -71,6 +72,20 @@ input { min-width: 0; } +.icon-btn { + width: 2em; + aspect-ratio: 1; + padding: 0; + line-height: 1; + overflow: hidden; + flex-shrink: 0; +} + +button.icon-btn, +button.icon-btn:hover { + border-color: transparent; +} + textarea, code, pre, .tool-input, .tool-diff, .tool-result, .fe-line-numbers { font-family: var(--mono); font-size: var(--mono-size); diff --git a/wwwroot/css/chat.css b/wwwroot/css/chat.css index fed5ae2..a8ba12f 100644 --- a/wwwroot/css/chat.css +++ b/wwwroot/css/chat.css @@ -242,13 +242,7 @@ gap: var(--badge-spacing); } -.input-area button { - width: 2em; - aspect-ratio: 1; - padding: 0; - line-height: 1; - overflow: hidden; -} + .input-area textarea { flex: 1; @@ -441,12 +435,7 @@ flex-shrink: 0; } -.sp-close { - width: 2em; - aspect-ratio: 1; - padding: 0; - line-height: 1; -} + .sp-body { padding: var(--page-padding); diff --git a/wwwroot/css/dashboard.css b/wwwroot/css/dashboard.css index 55e72f7..256f220 100644 --- a/wwwroot/css/dashboard.css +++ b/wwwroot/css/dashboard.css @@ -35,6 +35,7 @@ .card.clickable:hover { border-color: var(--primary); + filter: var(--hover-filter); } .card-image { diff --git a/wwwroot/css/form.css b/wwwroot/css/form.css index 06cc769..5b86baf 100644 --- a/wwwroot/css/form.css +++ b/wwwroot/css/form.css @@ -48,9 +48,7 @@ flex: 1; } -.input-addon-btn { - flex-shrink: 0; -} + .form-actions { display: flex; @@ -87,7 +85,7 @@ .custom-command-item .remove-cmd-btn { margin-left: var(--badge-spacing); color: var(--dangerous); - border-color: var(--dangerous); + align-self: center; } .custom-command-item .remove-cmd-btn:hover { diff --git a/wwwroot/css/theme.css b/wwwroot/css/theme.css index 5de74c9..ddd8cc6 100644 --- a/wwwroot/css/theme.css +++ b/wwwroot/css/theme.css @@ -1,7 +1,7 @@ :root { --text: #ddd; --text-accent: #fff; - --primary: #b41; + --primary: #a41; --secondary: #4a1; --dangerous: #f66; --warning: #fa0; @@ -29,4 +29,5 @@ --badge-spacing: .5em; --menu-item-padding: .5em .75em; --page-width: 900px; + --hover-filter: contrast(.9); } diff --git a/wwwroot/index.html b/wwwroot/index.html index 0af9554..35f7db4 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -61,7 +61,7 @@