Fix Share access, initials, copy confirm, and mailed export links #112

Merged
an.di merged 5 commits from adilallo/fix/share-dialog into main 2026-11-22 23:35:14 +00:00
2 changed files with 8 additions and 3 deletions
Showing only changes of commit 27f06dd7b0 - Show all commits

No files matched your search

+5 -3
View File
@@ -41,7 +41,7 @@ function PersonRow(props: {
roleLabel: string;
}) {
return (
<div className="flex w-full items-center gap-3 overflow-hidden">
<div className="flex w-full shrink-0 items-center gap-3 overflow-hidden">
<Avatar
alt=""
initials={props.initials}
@@ -142,7 +142,8 @@ export const ShareView = memo(function ShareView({
/>
</div>
<div className="flex min-h-0 flex-1 flex-col gap-5 overflow-x-clip overflow-y-auto px-6 pb-6 pt-6">
<div className="scrollbar-design min-h-0 flex-1 overflow-x-clip overflow-y-auto">
<div className="flex flex-col gap-5 px-6 pb-6 pt-6">
<div className="flex w-full items-center gap-2">
<div className="min-w-0 flex-1">
<TextInput
@@ -182,7 +183,7 @@ export const ShareView = memo(function ShareView({
</p>
) : null}
<div className="flex w-full flex-col items-start gap-3 overflow-hidden">
<div className="flex w-full shrink-0 flex-col items-start gap-3">
<p className="w-full text-small-label text-[var(--color-content-default-secondary)]">
{copy.peopleWithAccess}
</p>
@@ -303,6 +304,7 @@ export const ShareView = memo(function ShareView({
</div>
) : null}
</div>
</div>
{linkCopied ? (
+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();