From 99cad2fbaa490cb0e05598c7e81571c51672199c Mon Sep 17 00:00:00 2001 From: Arne Baeumler Date: Sat, 13 Jun 2026 07:53:53 +0200 Subject: [PATCH] feat: move theme toggle to top right --- src/server/request-handler.ts | 45 +++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/src/server/request-handler.ts b/src/server/request-handler.ts index 34464ff..71ef695 100644 --- a/src/server/request-handler.ts +++ b/src/server/request-handler.ts @@ -367,8 +367,27 @@ function htmlPage(): string { } .theme-toggle { - min-width: 112px; + position: fixed; + top: 16px; + right: 16px; + z-index: 900; + width: 40px; + height: 40px; + padding: 0; justify-content: center; + background: var(--timeline-surface-soft); + color: var(--timeline-text); + border: 1px solid var(--timeline-border); + box-shadow: var(--shadow-soft); + } + + .theme-toggle:hover { + background: var(--timeline-surface-strong); + } + + .theme-toggle .button-icon { + width: 18px; + height: 18px; } .panel-collapse { @@ -924,6 +943,11 @@ function htmlPage(): string { overflow: visible; } + .theme-toggle { + top: 12px; + right: 12px; + } + .list { max-height: min(52vh, 420px); --photo-thumb-size: 64px; @@ -951,6 +975,14 @@ function htmlPage(): string { +
@@ -967,14 +999,6 @@ function htmlPage(): string { -