Skip to content

HeaderE231のステート表示がAndroidで下端が見切れる問題を修正 - #6110

Merged
TinyKitten merged 1 commit into
devfrom
fix/header-e231-state-line-clip
Jun 3, 2026
Merged

TinyKitten merged 1 commit into
devfrom
fix/header-e231-state-line-clip

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Jun 3, 2026 •

Copy link
Copy Markdown
Member

概要

HeaderE231 のステート表示(「まもなく」「ただいま停車中」等)が Android 端末でフォント下端が見切れる問題を修正します。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • state スタイルの Android 用 lineHeight を RFValue(21) から RFValue(28) に変更
  • fontSize: RFValue(24) に対して lineHeight が小さく(21 < 24)、行ボックスがグリフ高を下回って下端が見切れていたため、fontSize の約 1.2 倍に引き上げて文字全体が収まるようにした
  • ステート表示は高さ BOTTOM_HEIGHT(非タブレット時 84dp)の領域に flex: 1 で配置されており、numberOfLines={2} でも 28 × 2 = 56dp で収まるため領域からははみ出さない

テスト

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

関連Issue

スクリーンショット(任意)

Summary by CodeRabbit

  • バグ修正
    • Android デバイスでのテキスト行の高さ表示を改善しました。

@TinyKitten TinyKitten self-assigned this Jun 3, 2026
@github-actions github-actions Bot added the react label Jun 3, 2026
@coderabbitai

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 61bb993c-f078-4ca0-ab73-8492fdb03030

📥 Commits

Reviewing files that changed from the base of the PR and between 1e038f3 and edbd0ff.

📒 Files selected for processing (1)
  • src/components/HeaderE231.tsx

📝 Walkthrough

Walkthrough

HeaderE231コンポーネントのスタイル定義で、styles.stateのlineHeight設定がAndroidプラットフォーム専用の値RFValue(28)を使用する形に変更されました。プラットフォーム依存の行間調整が明確化されています。

Changes

Androidプラットフォーム向け行間調整

Layer / File(s) Summary
Android用行間スタイル設定
src/components/HeaderE231.tsx
styles.stateのlineHeightがPlatform.select({ android: RFValue(28) })に変更され、Android環境での状態表示テキストの行間が明示的に最適化された。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2分

Possibly related PRs

  • TrainLCD/MobileApp#6106: HeaderE231.tsxの同じスタイルセクション内で行われるフォントサイズ計算の変更と関連し、駅名表示領域のタイポグラフィ調整が相互に関連。

Suggested labels

react

Poem

🐰 Androidの画面を整えて
行間をRFValueで調整し
プラットフォーム別の美しさを
Platform.selectで明確にして
細かな配慮が光る✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed PRタイトルはAndroidでの表示切れ問題という主要な変更を明確に説明しており、変更内容をよく要約しています。
Description check ✅ Passed PR説明書は必須セクション(概要、変更の種類、変更内容、テスト)をすべて充実して記載しており、テンプレート要件を満たしています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/header-e231-state-line-clip

Comment @coderabbitai help to get the list of available commands and usage tips.

@TinyKitten
TinyKitten merged commit 82ba09e into dev Jun 3, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the fix/header-e231-state-line-clip branch June 3, 2026 04:09
@TinyKitten TinyKitten mentioned this pull request Jun 3, 2026
4 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant