Skip to content

設定モーダルの閉じるボタンを列車種別モーダルと同じ仕様に修正 - #5973

Merged
TinyKitten merged 1 commit into
devfrom
fix/setting-modal-close-button
May 12, 2026
Merged

TinyKitten merged 1 commit into
devfrom
fix/setting-modal-close-button

Conversation

@TinyKitten

@TinyKitten TinyKitten commented May 12, 2026 •

Copy link
Copy Markdown
Member

概要

長押しで表示される設定モーダル(SelectBoundSettingListModal)の閉じるボタンを、列車種別モーダル(TrainTypeListModal)と同じ仕様に揃え、モーダル下端に絶対位置で固定するよう修正しました。

変更の種類

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

変更内容

  • 閉じるボタンを ScrollView 内のフローから取り出し、position: 'absolute' の closeButtonContainer(bottom: 0 / height: 72 / width: '100%')でモーダル下端に固定
  • iOS では BlurView(intensity 80 / light)、Android では rgba(255,255,255,0.92) の半透明オーバーレイ、LED テーマ時は #212121 でフラット塗りと、TrainTypeListModal と完全に同じ装飾に統一
  • contentView から paddingVertical/paddingHorizontal: 24 を撤去し、代わりに scrollContent 側へ paddingHorizontal: 24 / paddingTop: 24 / paddingBottom: 96 を付与(絶対配置のフッター 72 + 余白でコンテンツが隠れないよう確保)
  • closeButton のスタイルを marginTop: 24 から width: '100%' に変更

テスト

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

関連Issue

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

Summary by CodeRabbit

リリースノート

  • スタイル
    • 設定リストモーダルのUIを改善しました。プラットフォームとテーマに応じた背景効果と閉じるボタンの配置が最適化されています。

Review Change Stack

@TinyKitten TinyKitten self-assigned this May 12, 2026
@coderabbitai

coderabbitai Bot commented May 12, 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: e04e2366-679b-4698-bb7e-4925f27aa039

📥 Commits

Reviewing files that changed from the base of the PR and between 171d96b and e44cdf1.

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

📝 Walkthrough

ウォークスルー

SelectBoundSettingListModal.tsx のモーダル内の閉じるボタンを絶対位置指定されたボトムオーバーレイに移動し、プラットフォーム固有の背景スタイリング(iOS では BlurView、Android では白いオーバーレイ、LED テーマを除く)を追加します。スクロールコンテンツの余白を調整してオーバーラップを防止します。

変更

モーダル閉じるボタンの絶対位置指定とプラットフォーム固有スタイリング

レイヤー / ファイル(s) 概要
閉じるボタン絶対位置指定とプラットフォームスタイリング
src/components/SelectBoundSettingListModal.tsx
BlurView と Platform をインポートに追加します。スクロールコンテンツの余白を調整し、オーバーレイされた閉じるボタンのためのスペースを作成します。新しい closeButtonContainer スタイルを絶対位置指定で導入し、条件付きプラットフォーム固有の背景処理を実装します(LED テーマでない場合、iOS では BlurView、Android では白い View)。

推定コードレビュー工数

🎯 3 (中程度) | ⏱️ 約20分

ウサギの詩

モーダルの底に浮かぶボタン✨
iOS は BlurView でふわり柔らく
Android は白く輝き
絶対位置で完璧な配置
スクロール内容もスッキリ仕上がり🐰

🚥 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 fix/setting-modal-close-button

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

@github-actions github-actions Bot added the react label May 12, 2026
@TinyKitten
TinyKitten merged commit 55d9e68 into dev May 12, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the fix/setting-modal-close-button branch May 12, 2026 17:14
@TinyKitten TinyKitten mentioned this pull request May 12, 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.

1 participant