Skip to content

長押し設定モーダルの内容をScrollView化して縦幅不足時にスクロール可能にする - #5937

Merged
TinyKitten merged 1 commit into
devfrom
claude/scrollable-settings-modal-tr26j
May 11, 2026
Merged

TinyKitten merged 1 commit into
devfrom
claude/scrollable-settings-modal-tr26j

Conversation

@TinyKitten

@TinyKitten TinyKitten commented May 11, 2026 •

Copy link
Copy Markdown
Member

概要

長押しで開く設定モーダル(SelectBoundSettingListModal)は CustomModal 側で maxHeight: '75%' と overflow: 'hidden' が掛かっており、縦幅の余裕がない端末では下部のボタンが見切れて操作できないおそれがあった。本文を ScrollView でラップして、設定項目が増えても全項目に到達できるようにした。

変更の種類

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

変更内容

  • src/components/SelectBoundSettingListModal.tsx の本文ラッパーを View(styles.container) から ScrollView に置き換え、scrollView / scrollContent スタイルを追加。
  • keyboardShouldPersistTaps="handled" を指定し、スクロール中のボタン押下が阻害されないようにした。

テスト

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

関連Issue

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


Generated by Claude Code

Summary by CodeRabbit

リリースノート

  • 新機能
    • モーダルダイアログにスクロール機能を追加しました。大量のコンテンツを含む場合でもスムーズに操作できるようになります。

Review Change Stack

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

coderabbitai Bot commented May 11, 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: f4bb5256-e511-47bc-b73b-8e42b8fead17

📥 Commits

Reviewing files that changed from the base of the PR and between fc7bd6f and 5070905.

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

📝 Walkthrough

ウォークスルー

SelectBoundSettingListModal コンポーネントのモーダルコンテンツを ScrollView でラップしました。ScrollView のインポートを追加し、スタイル定義を拡張し、非スクロール可能なコンテナをスクロール対応の ScrollView に置き換えました。既存の UI 要素と機能は変わりません。

変更内容

モーダルスクロール機能

レイヤー / ファイル 説明
ScrollView インポート
src/components/SelectBoundSettingListModal.tsx
React Native から ScrollView をインポートして、スクロール機能を有効にしました。
スクロール用スタイル定義
src/components/SelectBoundSettingListModal.tsx
styles オブジェクトに scrollView と scrollContent の新しいスタイルキーを追加しました。
ScrollView 実装
src/components/SelectBoundSettingListModal.tsx
非スクロール可能なコンテナを ScrollView に置き換え、showsVerticalScrollIndicator={false} と keyboardShouldPersistTaps="handled" で構成しました。
モーダルコンテンツ
src/components/SelectBoundSettingListModal.tsx
見出し、トグルボタン、トレインタイプ/テーマ選択肢、閉じるボタンの構造はそのままで、親コンテナを ScrollView に変更しました。

🎯 1 (シンプル) | ⏱️ ~5 分

ウサギが言う:スクロール、スクロール、スムーズに流れる 🐰
モーダルは今、のびのび歩める
指でくるくる、コンテンツ巡る
ScrollView の力で、すべてが滑らか ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed タイトルは変更内容を明確に要約しており、SelectBoundSettingListModalコンポーネントの主な変更(ScrollView化とスクロール対応)を正確に説明しています。
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 claude/scrollable-settings-modal-tr26j

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

@TinyKitten
TinyKitten merged commit 33ccbd8 into dev May 11, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the claude/scrollable-settings-modal-tr26j branch May 11, 2026 07:53
@TinyKitten TinyKitten mentioned this pull request May 11, 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.

2 participants