From de843f658a8d06badb87784e6b70ea32c6a6ee03 Mon Sep 17 00:00:00 2001 From: johnnyjoygh Date: Mon, 31 Aug 2026 23:56:36 +0800 Subject: [PATCH] chore: slim down the view options popover Drop the title bar and section micro-headers, and let the layout switcher recede: transparent track with an accent fill on the active segment only, which also reads correctly in dark mode. --- web/src/components/MemoDisplaySettingMenu.tsx | 13 ++++--------- web/src/locales/en.json | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/web/src/components/MemoDisplaySettingMenu.tsx b/web/src/components/MemoDisplaySettingMenu.tsx index 69e1c090..8627cc7c 100644 --- a/web/src/components/MemoDisplaySettingMenu.tsx +++ b/web/src/components/MemoDisplaySettingMenu.tsx @@ -71,11 +71,10 @@ function MemoDisplaySettingsContent() { return (
-

{t("memo.layout")}

{ const delta = event.key === "ArrowRight" @@ -117,8 +116,8 @@ function MemoDisplaySettingsContent() { data-value={value} onClick={() => setMaxColumns(value)} className={cn( - "flex h-8 min-w-0 items-center justify-center gap-1 rounded-md px-1 text-[11px] transition-[background-color,color,box-shadow] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50", - active ? "bg-background text-foreground shadow-xs" : "text-muted-foreground hover:bg-background/60 hover:text-foreground", + "flex h-7 min-w-0 items-center justify-center gap-1 rounded-md px-1 text-[11px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50", + active ? "bg-accent text-accent-foreground" : "text-muted-foreground hover:bg-accent/50 hover:text-foreground", )} > @@ -130,7 +129,6 @@ function MemoDisplaySettingsContent() {
-

{t("memo.order")}