From 1881b8b384665e66933a769017763c73678bc036 Mon Sep 17 00:00:00 2001 From: Codex Night Worker Date: Thu, 12 Nov 2026 00:29:45 +0900 Subject: [PATCH] AI: address review on PR #457 --- frontend/src/components/TagDetailSidebar.test.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/components/TagDetailSidebar.test.tsx b/frontend/src/components/TagDetailSidebar.test.tsx index e89683f..14bb255 100644 --- a/frontend/src/components/TagDetailSidebar.test.tsx +++ b/frontend/src/components/TagDetailSidebar.test.tsx @@ -39,6 +39,18 @@ describe ('TagDetailSidebar', () => { vi.clearAllMocks () }) + it ('inherits the sidebar width saved by the post list', () => { + localStorage.setItem ('sidebar:posts-index-tags:left:width', '320') + + const { container } = renderWithProviders ( + ) + const sidebar = container.querySelector ( + '[style*="--sidebar-width"]') + + expect (sidebar).toBeInTheDocument () + expect (sidebar?.style.getPropertyValue ('--sidebar-width')).toBe ('320px') + }) + it ('keeps internal and external tags with the same numeric id in flat mode', () => { setClientTagRelationDisplayMode ('flat')