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 { -