From eab1ae635a828560b7802aaca05afc216e752e9f Mon Sep 17 00:00:00 2001 From: Phat Pham Date: Tue, 23 Jun 2026 18:55:36 +0700 Subject: [PATCH] feat: lay out Theme and UI density side by side in settings dialog Wraps the two sections in a 2-column grid (Theme left, density right) instead of stacking them, so each section's own choice grid no longer needs to be 2-column internally. Co-Authored-By: Claude Sonnet 4.6 --- core/render.ts | 6 ++++-- web-static/static/style.css | 10 ++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/core/render.ts b/core/render.ts index 6a80b9c..51f5913 100644 --- a/core/render.ts +++ b/core/render.ts @@ -235,11 +235,12 @@ export function renderIndexPage(data: PageData): string {

Adjust the reader appearance and choose which sources appear in the feed.

+

Theme

-
+
+

Sources

diff --git a/web-static/static/style.css b/web-static/static/style.css index 4d466f1..d244611 100644 --- a/web-static/static/style.css +++ b/web-static/static/style.css @@ -426,6 +426,12 @@ button { gap: 0.65rem; } +.config-section-row { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 1rem; +} + .config-section-header { display: flex; flex-direction: column; @@ -894,6 +900,10 @@ body.is-dialog-open { gap: 0.5rem; } +:root[data-ui-density="compact"] .config-section-row { + gap: 0.65rem; +} + :root[data-ui-density="compact"] .config-section-header { gap: 0.2rem; }