fix: scroll position restoration in the drive page and "Files" tab on the user page#17497
Open
nekochanfood wants to merge 15 commits into
Open
fix: scroll position restoration in the drive page and "Files" tab on the user page#17497nekochanfood wants to merge 15 commits into
nekochanfood wants to merge 15 commits into
Conversation
# Conflicts: # CHANGELOG.md
1 task
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #17497 +/- ##
===========================================
- Coverage 15.27% 15.26% -0.02%
===========================================
Files 247 247
Lines 12338 12347 +9
Branches 4178 4184 +6
===========================================
Hits 1885 1885
- Misses 8188 8195 +7
- Partials 2265 2267 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
min-height による空白領域にビューポート中央が入るケースで anchorId が更新 されず、復元が古い位置に飛んでしまう問題を修正した。 アンカー選択条件を「中央を跨ぐ要素のみ」から「上端が中央以下の最も下の要素」 に変更することで、空白領域スクロール時も最後のアイテムを正しくキャプチャできる。
Author
|
Files Tab Test: 2026-05-26.20-42-05.mp4Drive Page Test: 2026-05-26.20-43-38.mp4 |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
d644a9f to
5944aa1
Compare
kakkokari-gtyih
approved these changes
May 27, 2026
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.
What
ドライブページ (
/my/drive) とユーザーページの"Files"タブでアイテムをクリックして詳細画面へ推移してブラウザバックすると、クリックしたアイテムのIDと同じIDを持つ要素の中でのインデックス番号(ユーザーページの"Files"タブ限定)を基にしてスクロール位置を復元するようになります。Why
#17496 の fix です
Additional info (optional)
Checklist