台本下部中央にセリフ送りナビを追加#5
Merged
Merged
Conversation
選択キャラの次/前のセリフへスクロールするボタンを新設し、最初へ・最後へと 合わせて画面下部中央へ横並びで配置(左から 最後へ・次のセリフ・前のセリフ・最初へ)。 スクロール系は FloatingActions から ScriptNav へ移し、FAB は txt・印刷のみに整理。 次/前の判定は vertical-rl の幾何(start=右・end=左)を踏まえた純粋関数 findAdjacentDialogue に切り出してテスト。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deploying script-printer with
|
| Latest commit: |
d22824a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://6565a791.scriptprinter.pages.dev |
| Branch Preview URL: | https://feature-dialogue-nav.scriptprinter.pages.dev |
ネイティブ smooth をやめ 250ms の自前アニメーション(easeOutCubic)に変更。 次/前は目標 scrollX を直接指定し、対象セリフの中心をビューポート左右中央へ正確に合わせる。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
サマリ(キャラリスト等)が右側に sticky で重なるため、ビューポート中央ではなく サマリ左端までの読める領域の左右中央へ対象セリフを寄せる。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
サマリ左端のグラデーションを白ベタに変更し境界をくっきりさせる。 読める領域の右端をサマリの margin-box 左端として算出し、セリフの中央寄せと ナビバー自体の配置をその左右中央に合わせる(ResizeObserver で追従)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
フェード用だった margin-left と ::after マスクを廃止。サマリ自身の白背景が 背後の台本をマスクするため、余白なしで境界がくっきり揃う。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
スクロール位置を scroll/resize/サマリ変化/ハイライト集合変化で監視し、 先頭で「最初へ・前のセリフ」、末尾で「最後へ・次のセリフ」、対象が無い方向の 送りボタンを無効化する。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
概要
台本スクロールエリアの下部中央に、横並びのナビゲーションバーを新設しました。選択キャラの次/前のセリフへ素早く飛べます。
ボタンは左から
変更点
ScriptNavを新設。これまで FAB(右下)にあった最初へ・最後へのスクロールもこちらへ集約FloatingActions(右下 FAB)は txt 書き出し・印刷のみに整理findAdjacentDialogueに切り出してsrc/lib/scriptNav.test.tsでテストdata-dialogue-idを付与し、対象セリフへスクロール確認
🤖 Generated with Claude Code