fix: unify organization settings modal scrolling - #2508
Merged
Conversation
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.
Description
修复共享空间设置弹窗中的嵌套滚动和滚动位置残留问题。
问题表现
成员较多时,成员名单和空间设置内容区域存在不同的滚动区域。切换到“成员管理”等栏目后,可能沿用上一个栏目的滚动位置,导致部分成员没有出现在当前可见区域,容易误以为成员缺失。
滚动到弹窗边界后,滚轮事件还可能继续影响弹窗后面的页面。
根因
修改内容
用户影响
成员数量较多时,用户可以沿同一条外层滚动条查看完整成员名单。切换设置栏目后会从顶部开始展示内容,滚动也不会影响弹窗后面的页面。
Breaking Changes
无。
Type of Change
Related Issue
N/A
Testing
在 Podman Linux Node.js 环境中执行:
node --test src/views/organization/OrganizationSettingsModal.test.mjsvue-tsc --build --pretty falsegit diff --checkChecklist
make fmt && make lint && make testpass locally