AI: #451 サイド・バーの幅が投稿一覧と投稿詳細で独立してゐるのを直す (#457)

Refs #451

Implementation model: `gpt-6.1-sol` / reasoning: `low`

## Automated implementation (requires human review)
[TagDetailSidebar.tsx](frontend/src/components/TagDetailSidebar.tsx) の幅保存キーを投稿一覧と統一しました。両画面で調整した幅を共有し、既存の一覧側の保存幅を引き継ぎます。

差分確認済みです。指定に従い、テスト・lint・ビルドは未実行です。実画面での幅変更と画面遷移の確認も未実施です。

## Automated review (not a guarantee of correctness)
```text
The change shares the persisted sidebar width between post detail and post index views through the existing sidebar component. No actionable defects were identified.

```

## Verification
- Tests/builds/migrations were not authorized and were not invoked by the controller.
- Codex was instructed not to run them; its command transcript should be inspected.
- Do not merge before manual acceptance and required checks.

---------

Co-authored-by: miteruzo <miteruzo@naver.com>
Co-authored-by: Codex Night Worker <codex-night@localhost>
Reviewed-on: #457
Co-authored-by: テツノニジカ <969+codex-bot@noreply.localhost>
このコミットはプルリクエスト #457 でマージされました。
このコミットが含まれているのは:
2026-11-22 01:15:01 +09:00
committed by みてるぞ
co-authored by みてるぞ Codex Night Worker
コミット 189f0bc52c
2個のファイルの変更、13行の追加、1行の削除
+12
ファイルの表示
@@ -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 (
<TagDetailSidebar post={buildPost ()}/>)
const sidebar = container.querySelector<HTMLElement> (
'[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')
+1 -1
ファイルの表示
@@ -378,7 +378,7 @@ const TagDetailSidebar: FC<Props> = ({ className, post, sp }) => {
}, [baseTags])
return (
<SidebarComponent sidebarKey="post-detail-tags" className={className}>
<SidebarComponent sidebarKey="posts-index-tags" className={className}>
<TagSearch/>
<DndContext
sensors={sensors}