Skip to content

fix(page-permission): make people-with-access list scroll past 4 entries - #2137

Merged
Philipinho merged 1 commit into
docmost:mainfrom
olivierlambert:fix/page-permission-list-overflow
Apr 29, 2026
Merged

Philipinho merged 1 commit into
docmost:mainfrom
olivierlambert:fix/page-permission-list-overflow

Conversation

@olivierlambert

@olivierlambert olivierlambert commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #2135.

In the page share modal, the "People with access" list used <ScrollArea mah={250}>. mah caps the container height but does not make the inner viewport scroll on its own — Mantine's ScrollArea requires a fixed height for the viewport to scroll. The result: items beyond ~4 entries were rendered into the DOM correctly but clipped out of view, with no scrollbar.

Fix

Switch to <ScrollArea.Autosize mah={400}>, which is Mantine's dedicated primitive for "grow with content up to a max, then scroll" — exactly the behavior wanted here.

Bumped the cap from 250px → 400px while we're here, since 250px is fairly tight (~4–5 rows) and pages with longer access lists are common.

Compare with apps/client/src/features/space/components/space-members.tsx

That sibling list works correctly because it uses <ScrollArea h={450}> (fixed height). Either pattern is valid; Autosize was the better fit here because the access list is usually short and we don't want a tall empty box for pages with only 1–2 entries.

Test plan

  • Open a page → Share → Access tab → add 6+ members/groups
  • All entries are visible and the list scrolls
  • List stays compact (no large empty area) when only 1–2 entries are present

The "People with access" list in the page share modal used
<ScrollArea mah={250}>, which caps the container height but does not
make the inner viewport scroll (no fixed height is given to the
viewport). Items beyond ~4 entries were rendered correctly but clipped
out of view.

Switches to <ScrollArea.Autosize mah={400}>, which is Mantine's
dedicated primitive for "grow with content up to a max, then scroll".

Closes docmost#2135
@olivierlambert

Copy link
Copy Markdown
Contributor Author

Tested functionally and working.

@Philipinho
Philipinho merged commit 3ecf27c into docmost:main Apr 29, 2026
1 check passed
@Philipinho

Copy link
Copy Markdown
Member

Thanks for contributing.

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.

Adding more than 4 items in the "People with access" list makes them invisible

2 participants