Scroll the Share people list on a short frame instead of squashing it.

Overflow-hidden let flex shrink the avatar rows, and the pane used the browser scrollbar instead of the design-system one.
This commit is contained in:
adilallo committed 2026-11-22 16:32:51 -07:00
1 parent 1b3d055c81
commit 27f06dd7b0
2 files changed
+8 -3

No files matched your search

+3
View File
@@ -86,6 +86,9 @@ describe("Share modal", () => {
).toBeInTheDocument();
expect(screen.getByText("Juniper Street Food Share")).toBeInTheDocument();
expect(screen.getByText("You")).toBeInTheDocument();
const people = screen.getByText("People with access").parentElement;
expect(people).not.toHaveClass("overflow-hidden");
expect(people?.parentElement?.parentElement).toHaveClass("scrollbar-design");
expect(screen.getByText("N")).toBeInTheDocument();
expect(screen.getByText("R")).toBeInTheDocument();
expect(screen.getByRole("button", { name: "Invite" })).toBeEnabled();