Skip to content

Fix duplicate scrollbars in space_users_list page#8280

Open
Copilot wants to merge 2 commits into3.0from
copilot/fix-double-scrollbar-issue
Open

Fix duplicate scrollbars in space_users_list page#8280
Copilot wants to merge 2 commits into3.0from
copilot/fix-double-scrollbar-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 12, 2026

The space users list page exhibited three layout issues: department tree scrollbar appearing at page level instead of within sidebar, user list showing a second vertical scrollbar, and page jumping on initial load.

Changes

Flexbox height constraints

  • Sidebar wrapper: Added h-full to constrain height within parent flex container
  • Right content wrapper: Added overflow-hidden h-full flex flex-col to establish proper flex context
  • User listview: Added h-full flex-1 to fill available space

CSS overflow management

".space-users-list-custom-page.space-users-list-pc .space-users-list-sidebar-wrapper .antd-Form-item .antd-Tree": {
  "max-height": "100%",  // was "none"
  "overflow-y": "auto"
}

This creates a proper containment hierarchy: sidebar scrolls independently, user list fills remaining space without generating its own scrollbar, and explicit heights prevent layout shifts on load.

Original prompt

This section details on the original issue you should resolve

<issue_title>[Bug]: 人员列表,左侧部门树很多时,人员列表会出现两个纵向滚动条</issue_title>
<issue_description>### Description

Image

Steps To Reproduce 重现步骤

fssh环境

Version 版本

3.0.8</issue_description>

Comments on the Issue (you are @copilot in this section)

@lizheng-steedos space_users_list.page.amis.json这个微页面,有几个问题: 1、左侧组织,右侧人员列表,左侧组织很多的情况下,组织树的滚动条变到了最右侧的页面滚动条;人员列表还会有单独的滚动条; 2、人员单独的滚动条高度计算的不对,显示有问题; 3、默认进入这个页面会跳上去,把顶部的字段名称行盖住;

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: lizheng-steedos <151509384+lizheng-steedos@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix double scrollbar issue in user list Fix duplicate scrollbars in space_users_list page Jan 12, 2026
Copilot AI requested a review from lizheng-steedos January 12, 2026 09:59
@lizheng-steedos lizheng-steedos marked this pull request as ready for review January 12, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 人员列表,左侧部门树很多时,人员列表会出现两个纵向滚动条

2 participants