Repository navigation
フィードバックモーダルをハーフモーダルからセンタリング表示に変更 - #6036
Conversation
|
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)
📝 WalkthroughWalkthroughNewReportModalコンポーネントのレイアウトをスクロール対応に再構成。ScrollViewをimportに追加し、isTabletの端末判定を削除。modalViewのスタイルを整理して新規scrollContentを定義。CustomModalへのスタイルプロップ名をbackdropStyle/contentContainerStyleに変更し、モーダルコンテンツをScrollView + Pressableラッパーで構成し直した。 ChangesScrollable Modal Layout
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 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)
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 |
概要
横画面 (landscape) で
NewReportModal(フィードバック送信モーダル) を開くと、CustomModalのデフォルトmaxHeight: 75%(= 720px 端末で 540px) とoverflow: hidden、およびjustifyContent: 'flex-end'のボトムシート配置とが重なって、注意書きや送信ボタンが画面外に切れて操作できなくなっていた (#6031)。そもそも本モーダルが画面下端に貼り付くハーフモーダルである必然性は薄かったため、
CustomModalのデフォルトであるセンタリング表示に切り替え、内容をScrollViewでラップして両画面向き・縦長フォーム両方で安定して表示・操作できるようにする。変更の種類
変更内容
src/components/NewReportModal.tsxcontainerStyleのjustifyContent: 'flex-end'/padding: 0等のボトムシート配置を撤去し、CustomModalのデフォルト center 配置 (画面中央・周囲に余白) に乗せるmodalViewをborderRadius: 16の全周角丸に統一 (旧: 上端のみ角丸 + iPhone のみ全周という分岐)ScrollView(keyboardShouldPersistTaps="handled") でラップ。CustomModal側のmaxHeight: 75%に収まらない端末・フォントサイズでも送信ボタンまで到達可能にScrollViewのcontentContainerStyleへ集約isTabletimport を削除テスト
npm run lintnpm testnpm run typecheck関連Issue
Closes #6031
スクリーンショット (任意)
Summary by CodeRabbit
リリースノート