Repository navigation
fix: 教材名と設定の見出しが、語の途中で改行されないようにする - #200
Merged
Merged
Conversation
「人称代名詞・所有形容詞・冠詞・指示詞 / の表完成演習」のように教材名が不自然な位置で改行され、 スマホでは設定の折りたたみ見出しが「お / 題」のように1文字ずつ改行されていた。 - 教材名は「・」「、」や括弧の前後でだけ改行する(PhraseText。区切りの間に <wbr> を入れ、 塊の中は word-break: keep-all で折らない。塊が幅に収まらないときだけ中で折り返す)。 トップの教材一覧・サイドバー・セクション一覧のカード・セクションの見出しに使う - 設定の見出しは項目名を折り返さず、スマホでは今の値を次の行に回す UI/UX改善計画書 C5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||
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.
概要
UI/UX改善計画書の C5。「人称代名詞・所有形容詞・冠詞・指示詞 / の表完成演習」のように教材名が不自然な位置で改行され、スマホでは設定の折りたたみ見出しが「お / 題」のように1文字ずつ改行されていました。
変更
PhraseText)<wbr>を入れ、塊の中はword-break: keep-allで折らない。塊1つが幅に収まらないときだけoverflow-wrap: anywhereで中でも折り返すword-break: auto-phraseは iOS Safari が対応していないので使わなかったlib/shared/phrase-breaks.tsの純粋関数にし、unit test を足したCollapsibleSetting)は項目名を折り返さず、スマホ幅では今の値を次の行に回す「前回の続き」(
RecentActivity)の教材名は #189(A3)が書き直しているので、ここでは触っていません。確認
🤖 Generated with Claude Code