Repository navigation
タブレットで列車種別のカッコ内テキストが本文と同じサイズになる不具合を修正 - #5947
Merged
Merged
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughCommonCard コンポーネントのタイトル括弧スタイルにおいて、タブレットデバイスとそれ以外のデバイスで異なるフォントサイズ処理を適用する条件分岐を追加。タブレット時は固定値、非タブレット時はレスポンシブ値を使用。 Changesフォントサイズレスポンシブ対応
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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.
概要
各モーダル(路線・行先・列車種別・経路・プリセット保存)で列車種別を表示する
CommonCardのカッコ内テキストが、スマートフォンでは本文より小さく表示されるのに対し、タブレットでは本文と同等以上のサイズで描画されてしまう不具合を修正しました。変更の種類
変更内容
src/components/CommonCard.tsxのtitleParensスタイルのfontSizeをRFValue(13)からisTablet ? 13 : RFValue(13)に変更し、タブレットでは固定値13を使うようにした。RFValueは画面の高さに比例してスケールするため、縦解像度の大きいタブレットではRFValue(13)が本文側の固定値21に並ぶ/上回るサイズに膨らんでしまっていた。既存のtitleAffix(「方面」接辞)と同じ補正方針に揃え、CommonCardを利用する全モーダル(TrainTypeListModal/SelectBoundModal/RouteInfoModal/StationSearchModal/SavePresetNameModal)に効くようにした。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Generated by Claude Code
Summary by CodeRabbit
リリースノート