Skip to content

フィードバックモーダルを縦方向いっぱいに広げる - #6048

Merged
TinyKitten merged 1 commit into
devfrom
feature/expand-report-modal
May 25, 2026
Merged

TinyKitten merged 1 commit into
devfrom
feature/expand-report-modal

Conversation

@TinyKitten

@TinyKitten TinyKitten commented May 25, 2026 •

Copy link
Copy Markdown
Member

概要

フィードバックモーダル内側に発生していた余白を減らすため、モーダル本体を縦方向いっぱいに展開する。あわせて本文入力欄 (TextInput) を固定高さにし、入力中もキーボード開閉時もサイズが変動しないようにした。

変更の種類

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

変更内容

  • NewReportModal のモーダル本体に flex: 1 / maxHeight: '100%' を当てて常に縦方向いっぱいに表示するように変更
  • 本文入力欄 (TextInput) を height: 128 の固定サイズに変更し、入力前後・キーボード開閉に関わらず大きさが変わらないようにした
  • 上記に伴い、ScrollView / Pressable / 本文ラッパー View に flex 系プロパティを追加して縦方向の領域を吸収

テスト

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

関連Issue

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

Summary by CodeRabbit

リリースノート

  • Style
    • レポート作成モーダルのレイアウトを改善しました。スクロール領域の伸長、入力フィールドのサイズ制御、キーボード操作時の使いやすさが向上しています。

Review Change Stack

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

coderabbitai Bot commented May 25, 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: 9533e210-bb51-49e3-b9cf-2d2a7726377c

📥 Commits

Reviewing files that changed from the base of the PR and between 33e902f and 9c46980.

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

📝 Walkthrough

Walkthrough

NewReportModal コンポーネントのレイアウト制御スタイルが拡張されました。モーダル本体、スクロール領域、テキスト入力、圧力可能なラッパー要素の高さと伸長動作を定義する CSS プロパティが追加され、UI 実装で新規スタイルが適用されました。

Changes

モーダルレイアウト最適化

Layer / File(s) Summary
スタイルシートと UI の一体更新
src/components/NewReportModal.tsx
StyleSheet に modalView(flex・maxHeight)、scrollContent(flexGrow)、新規 pressableContent(flex)、textInput(height)を追加。あわせて modalContent に flex: 1 を追加し、UI 側では Pressable に styles.pressableContent を付与して、モーダルと入力領域の伸長挙動を改善しました。

関連する可能性がある PR

  • TrainLCD/MobileApp#6039: このPR が NewReportModal.tsx 内の TextInput のレイアウトスタイル(styles.textInput)とモーダル表示処理を追加しているのに対し、当該 PR も同じく TextInput(autoFocus・onShow)の表示時挙動を変更しており、同コンポーネントの TextInput 関連の変更で関連があります。

  • TrainLCD/MobileApp#6036: このPR で NewReportModal.tsx の modalView・scrollContent・pressableContent・modalContent のレイアウトスタイルが更新される一方、当該 PR も同じく NewReportModal の modalView や scrollContent を中心にスタイル受け渡しと ScrollView の構成を変更しており、コードレベルで直接関連があります。

Suggested labels

react

Poem

🐰 モーダルのレイアウト、スッキリと整えて
flex と maxHeight で高さ思うまま
入力欄は固定、スクロール領域のびのび
ウサギも応援、UI の進化!

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed プルリクエストのタイトルは、モーダルを縦方向に展開するという変更内容を正確かつ簡潔に表現しており、主要な変更を適切に要約しています。
Description check ✅ Passed プルリクエストの説明は、テンプレートの全セクションを埋めており、概要・変更内容・テスト状況が十分に記載されています。スクリーンショットの未添付は任意項目のため問題ありません。
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 feature/expand-report-modal

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

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


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

@TinyKitten
TinyKitten merged commit 18f65a6 into dev May 25, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the feature/expand-report-modal branch May 25, 2026 10:35
@TinyKitten TinyKitten mentioned this pull request May 25, 2026
5 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.

1 participant