Repository navigation
ヘッダーの「Guidelines」のドロップダウンを2列にする (#488) - #489
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
群のラベルに枠を足し、行を 8px 下げた(追加コミット)。技術ブログ #3226 / #3180 と同じ形。 ラベルの枠2 列の多段組は左に余白が無く縦罫を引く場所が無いので、群を表す印はラベル自身が持つしかない。枠はタグのチップ(ピル型)と取り違えられないよう、角丸は小さな部品の段(4px)の四角のままで地は敷かない。幅は文字ちょうどに留める——列幅いっぱいに伸ばすと同じ幅のボタンの列に見える。 枠を足したぶん文字は一段引いた(14px/600 → 12px/400)。押せない分類の名前が行き先より重いと読む順が逆になるので、大きさ・太さ・色の 3 つで押せる名前と分ける。枠の中の文字の位置(左 3 + 枠 1 + 余白 8 = 12px)は、2 列にする前の行の文字と同じ。 行の字下げラベルより 8px 下げた。16px は強すぎる(技術ブログ #3180 が実測で 8px 止まりと決めている)。押せる範囲は列いっぱいのままで、下げるのは文字だけ。 幅の引き直し字下げのぶん列が広くなるので、実測で取り直した(Noto Sans CJK、14px)。
列の内寸を 220px(8px の余裕つき)取り、溝 32・パネルの余白 24・枠 2 で 500px。前のコミットは 458px だった。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #488
「Guidelines」のドロップダウン(6 群・23 件)を 2 列にした。
作り
グリッドではなく多段組(
column-width)。 技術ブログ #2908 と同じで、理由も同じ 2 つ。break-inside: avoidで群が列の途中で割れない列数は列幅の下限で決めるので、幅が足りない場所では自動で 1 列に落ちる。
幅は「最長の行が折り返さない」で決めた。 14px の実測(和文 1 文字 14px)で、行のいちばん長い
Markdown設計ドキュメントが 175px、群ラベルのはじめての〇〇シリーズが 154px。左右のパディング 24px を足して列の内寸 200px、溝 32px、パネルの余白 24px と枠 2px で 458px。対象外
VPNavScreenMenuGroup)が描くので変わらない:has(.VPMenuGroup)で「群を持つドロップダウン」に限定している🤖 Generated with Claude Code