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')
diff --git a/frontend/src/components/TagDetailSidebar.tsx b/frontend/src/components/TagDetailSidebar.tsx
index cf94c86..bc0862e 100644
--- a/frontend/src/components/TagDetailSidebar.tsx
+++ b/frontend/src/components/TagDetailSidebar.tsx
@@ -378,7 +378,7 @@ const TagDetailSidebar: FC = ({ className, post, sp }) => {
}, [baseTags])
return (
-
+