Repository navigation
駅名の末尾が圧縮表示で欠ける問題を修正 - #6069
駅名の末尾が圧縮表示で欠ける問題を修正#6069
Conversation
📝 WalkthroughWalkthroughHeaderStationName コンポーネントのスタイル定義で ChangesHeaderStationName 描画調整
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 分 Possibly related PRs
Suggested labels
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)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/components/HeaderStationName.tsx (1)
40-44: ⚖️ Poor tradeoffReact Native 0.83 では
transformOriginは公式にサポートされているため、サポート懸念を弱める(描画の最終確認のみ)
src/components/HeaderStationName.tsxのscaledText(transformOrigin: 'center')は、React Native 0.83 の公式ドキュメント上で有効なスタイルプロパティとして iOS/Android 両対応で説明されています。サポート未対応による根本的な崩れの可能性は低いです。
一方で、transformOriginがスタイリング抽象(例: Tailwind/NativeWind等)を経由してそのままネイティブへ渡っているかと、実機でスケール中心が意図通りになるかは軽く確認してください。🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/components/HeaderStationName.tsx` around lines 40 - 44, scaledText にセットした transformOrigin: 'center' が RN 0.83 では公式サポートされているので大きな問題ではありませんが、HeaderStationName.tsx 内の scaledText スタイルが実際にネイティブに正しく渡されているか(Tailwind/NativeWind 等のスタイリング抽象を経由していないか)と、実機(iOS/Android)でスケールの中心が期待通りになるかを確認してください。もし抽象層でプロパティがフィルタリングされているなら transformOrigin を直接スタイルに残すか、代替の transform-origin 相当の実装に置き換え、異常があればその旨をログかコメントで記載してください。
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/components/HeaderStationName.tsx`:
- Around line 40-44: scaledText にセットした transformOrigin: 'center' が RN 0.83
では公式サポートされているので大きな問題ではありませんが、HeaderStationName.tsx 内の scaledText
スタイルが実際にネイティブに正しく渡されているか(Tailwind/NativeWind
等のスタイリング抽象を経由していないか)と、実機(iOS/Android)でスケールの中心が期待通りになるかを確認してください。もし抽象層でプロパティがフィルタリングされているなら
transformOrigin を直接スタイルに残すか、代替の transform-origin
相当の実装に置き換え、異常があればその旨をログかコメントで記載してください。
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c24a3c85-58c1-4dda-b3f1-c9b24be94b97
📒 Files selected for processing (2)
src/components/HeaderStationName.test.tsxsrc/components/HeaderStationName.tsx
概要
駅名を横圧縮表示する際に、末尾が表示窓で欠ける問題を修正しました。
変更の種類
変更内容
北野白梅町・きたのはくばいちょうが末尾まで圧縮表示対象になる回帰テストを追加テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること実行コマンド:
関連Issue
スクリーンショット(任意)
Summary by CodeRabbit
リリースノート
テスト
スタイル