あの日の一冊モーダルの位置ずれとスクロール制御を修正 - #271
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
-translate-y-1/2が上書きされてモーダルが中央からずれて表示される問題を解消するため。Description
apps/web/src/features/index/components/OnThisDay.tsxを修正し、アニメーション対象の要素を全画面のフレックスコンテナ内にラップして中央配置するよう変更しました。max-h-[calc(100dvh-2rem)]とoverflow-y-autoを追加して、表示領域に収まらない場合はモーダル内部でスクロールするようにしました。toggleNoScrollBody(open)を呼ぶuseEffectを追加し、クリーンアップで確実に解除するようにしました(@/utils/elementの利用)。pointer-eventsの調整を入れてオーバーレイとコンテンツのクリック挙動を明確化し、閉じるボタンへ明示的にtype="button"を追加しました。Testing
pnpm install --frozen-lockfileが成功しました。pnpm --filter web exec prettier --write src/features/index/components/OnThisDay.tsxを実行してフォーマットを適用しました(成功)。pnpm --filter web lintを実行しエラーなしで完了しましたが既存のファイルに対する警告が6件報告されました(警告のみ)。pnpm --filter web check-types(tsc --noEmit)が成功しました。pnpm --filter web prisma:generateとpnpm --filter web exec playwright install chromium/playwright install-deps chromiumは実行し依存のインストールは完了しましたが、試験的に行ったヘッドレスでのスクリーンショット取得は環境(Playwright のネイティブライブラリ依存や開発サーバーの Prisma 初期化タイミング)により保存に失敗しました。Codex Task