Skip to content

縦画面時の種別変更通知の表示位置を修正 - #6385

Merged
TinyKitten merged 1 commit into
devfrom
agent/fix-type-change-notify-portrait-position
Jul 10, 2026
Merged

TinyKitten merged 1 commit into
devfrom
agent/fix-type-change-notify-portrait-position

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Jul 10, 2026 •

Copy link
Copy Markdown
Member

概要

端末が縦向きのまま Main 画面を90度回転して表示する場合に、種別変更通知が以前より下へずれて見える問題を修正します。

物理画面の縦向き用セーフエリアが、回転後の横長レイアウトの上下余白として適用されていたことが原因です。

変更の種類

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

変更内容

  • 横長寸法フックから物理画面が縦向きかどうかを取得できるように変更
  • 物理画面が縦向きの場合、種別変更通知の上下セーフエリアを除外
  • 物理画面が横向きの場合は従来どおり全方向のセーフエリアを維持
  • 縦向き・横向き双方の回帰テストを追加

回帰リスクはセーフエリアの適用方向に限定されます。通常の横画面では従来の設定を維持し、向きごとのテストで軽減しています。

テスト

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

Windows環境では npm test の TZ=UTC 指定をPowerShell側で設定し、npx jest --runInBand を実行しました。

  • 189テストスイート、2031テスト成功
  • git diff --check 成功

関連Issue

なし

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

未取得

Summary by CodeRabbit

  • 改善

    • 端末の向きに応じて、セーフエリアの適用範囲を最適化しました。
    • 縦向きでは左右のみ、横向きでは全方向にセーフエリアを適用します。
    • 画面サイズを横長レイアウト向けに正しく判定できるよう改善しました。
  • テスト

    • 縦向き・横向きそれぞれの画面サイズ判定と、セーフエリア適用範囲を検証するテストを追加しました。

@TinyKitten TinyKitten self-assigned this Jul 10, 2026
@coderabbitai

coderabbitai Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: d7b15897-4f2f-43bd-90a5-21cef4b272d1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/fix-type-change-notify-portrait-position

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

@github-actions github-actions Bot added the react label Jul 10, 2026
@TinyKitten
TinyKitten marked this pull request as ready for review July 10, 2026 23:39
@TinyKitten
TinyKitten merged commit c9bb529 into dev Jul 10, 2026
7 checks passed
@TinyKitten
TinyKitten deleted the agent/fix-type-change-notify-portrait-position branch July 10, 2026 23:43
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