Repository navigation
Commit 808b41c
編集者アイコンの初回表示でレイアウト計算が早すぎる問題を修正
編集者アイコンの折りたたみを行うスクリプトはインラインで即座に
layout() を呼んでいたが、この時点ではドキュメントのパース中であり、
サイドバーを含むページ全体のレイアウトが確定していない。そのため
実際より広い幅で「全員収まる」と判定してしまい、初回表示では
アイコンが溢れて最新の編集者 (左端) が見切れていた。
ウィンドウをリサイズすると resize ハンドラ経由で正しく折りたたまれる。
レイアウト確定後の DOMContentLoaded と、画像の読み込みで
スクロールバーが出て幅が変わる場合のために load でも測り直す。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q6ieEswhqyf2nhii26k9V51 parent 1191a4c commit 808b41c
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
214 | 218 | | |
| 219 | + | |
| 220 | + | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
| |||
0 commit comments