Skip to content

タブレットで「方面」サフィックスのフォントサイズが駅名と同じになる不具合を修正 - #5940

Merged
TinyKitten merged 1 commit into
devfrom
claude/fix-direction-font-tablet-2X9UA
May 11, 2026
Merged

TinyKitten merged 1 commit into
devfrom
claude/fix-direction-font-tablet-2X9UA

Conversation

@TinyKitten

@TinyKitten TinyKitten commented May 11, 2026 •

Copy link
Copy Markdown
Member

概要

タブレットで方面選択モーダル(SelectBoundModal / CommonCard)の「方面」サフィックスのフォントサイズが駅名と同等以上に大きく描画されてしまう不具合を修正する。

変更の種類

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

変更内容

  • src/components/CommonCard.tsx の titleAffix スタイルの fontSize を RFValue(13) から isTablet ? 13 : RFValue(13) に変更。
  • RFValue は端末の画面高さに比例して値が増えるため、タブレットでは固定サイズの駅名 (title: fontSize: 21) と同等以上の値となり、「方面」が小さく見えなくなっていた。タブレットでは固定値 13 を採用し、スマホでの見た目(RFValue(13))は従来通り維持する。

テスト

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

関連Issue

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


Generated by Claude Code

Summary by CodeRabbit

  • スタイル調整
    • タブレット表示における文字サイズの表示ロジックを最適化しました。

Review Change Stack

@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: 83a6a645-2925-4d3e-b030-8bab9a90155c

📥 Commits

Reviewing files that changed from the base of the PR and between e0afa09 and 8a1ebff.

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

📝 Walkthrough

Walkthrough

CommonCard コンポーネントの titleAffix スタイルで、タブレットデバイス上での fontSize を条件付きで設定するようになりました。タブレットでは固定値 13、その他のデバイスでは RFValue(13) を使用します。

Changes

Tablet Font Size 条件付き設定

Layer / File(s) Summary
Font Size Responsive Styling
src/components/CommonCard.tsx
titleAffix の fontSize が isTablet に基づいて条件付きで設定されるようになりました。タブレット上では固定値 13、その他では RFValue(13) を使用します。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 Tablets need not stretch and squint,

A fixed thirteen point does glint,

While phones still hop with RFValue's grace,

Each screen now fits its perfect place! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed PR タイトルは、タブレットでの「方面」サフィックスのフォントサイズ不具合修正という、変更セットの主要な内容を明確に要約しており、簡潔かつ具体的である。
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-direction-font-tablet-2X9UA

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

@github-actions github-actions Bot added the react label May 11, 2026
@TinyKitten TinyKitten self-assigned this May 11, 2026
@TinyKitten
TinyKitten merged commit 6c09daa into dev May 11, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the claude/fix-direction-font-tablet-2X9UA branch May 11, 2026 08:46
@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