Skip to content

都営風テーマでナンバリング非表示のiPad向け駅名位置をバー上に揃える - #5941

Merged
TinyKitten merged 1 commit into
devfrom
claude/fix-station-name-positioning-v0EON
May 11, 2026
Merged

TinyKitten merged 1 commit into
devfrom
claude/fix-station-name-positioning-v0EON

Conversation

@TinyKitten

@TinyKitten TinyKitten commented May 11, 2026 •

Copy link
Copy Markdown
Member

概要

iPad で都営風テーマを使用しており、対象路線の各駅にナンバリングが設定されていない場合、斜めに描画される駅名が大きく下方向にずれてバーへ食い込む不具合を修正する。

変更の種類

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

変更内容

  • LineBoardToei の StationNameToei で hasNumbering === false の marginBottom を、タブレットのみ dim.height / 14 から dim.height / 10(ナンバリング有りと同値)に揃えた。スマホ側は元から dim.height / 10 のため挙動は変わらない。
  • iPad では stationNumber が position: 'relative' で約 20px のレイアウト枠を占めていたため、PR LineBoardToei下部の空きを詰めて都営バスのフォールバック判定を撤去 #5889 で marginBottom を縮めかつ stationNumber を非描画にした合算でおよそ 50px 沈み込んでいた。stationNumber 不在分だけ駅名が自然に下がるに留めることで、PR LineBoardToei下部の空きを詰めて都営バスのフォールバック判定を撤去 #5889 が意図した「下部の空きを詰める」効果は維持しつつ、バーへの沈み込みを解消する。
  • 経緯を理解した上で再修正できるよう、コードコメントとして残した。

テスト

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

関連Issue

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


Generated by Claude Code

Summary by CodeRabbit

リリースノート

  • バグ修正
    • 駅名表示のレイアウト調整を改善しました。タブレットデバイス上での余白計算を最適化し、表示の一貫性を向上させています。

Review Change Stack

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

coderabbitai Bot commented May 11, 2026 •

Copy link
Copy Markdown
Contributor

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: 07bb0970-5a9b-42e6-adea-74d84632496e

📥 Commits

Reviewing files that changed from the base of the PR and between 6c09daa and fc0bfce.

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

📝 Walkthrough

ウォークスルー

StationNameToeiBaseコンポーネントのレイアウト計算が簡潔化されました。hasNumberingが偽の場合に適用されるmarginBottom値を、タブレット判定に基づく条件式から常にdim.height / 10を使用する固定値に変更し、iPad固有のサイジング動作に関する説明コメントが追加されました。

変更内容

Toeiラインステーションレイアウト簡潔化

レイヤー / ファイル 要約
スタイル計算の簡潔化
src/components/LineBoardToei.tsx
StationNameToeiBaseのhorizontalAdditionalStyle内で、hasNumberingが偽のときのmarginBottom値をisTablet判定のある式から常にdim.height / 10を使用する固定値に変更。iPad固有のサイジング動作を文書化するコメントを追加。

推定コードレビュー工数

🎯 2 (シンプル) | ⏱️ ~10分

ポエム

🐰 marginBottomの迷路から抜け出せたね、
タブレット判定はさようなら~ 📱
dim.height / 10でシンプルに、
iPadちゃんの声も聞こえて、
レイアウトはいつもスッキリ! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed PR タイトルは「都営風テーマでナンバリング非表示のiPad向け駅名位置をバー上に揃える」であり、変更内容(iPad で都営風テーマ使用時のナンバリング非表示時の駅名位置をバー上に調整)とよく対応している明確かつ具体的なタイトルである。
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 claude/fix-station-name-positioning-v0EON

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

@TinyKitten
TinyKitten merged commit c925c7d into dev May 11, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the claude/fix-station-name-positioning-v0EON branch May 11, 2026 09:04
@TinyKitten TinyKitten mentioned this pull request May 11, 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.

2 participants