Skip to content

Commit a1274eb

Browse files
authored
Keep the v2 moved notice inside its dialog for long organization names (#2279)
1 parent 6682324 commit a1274eb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/cloud/src/web/components/v2-moved-notice.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ export function V2MovedNotice() {
9898
close(V2_MOVED_DISMISS_SNOOZE_MS);
9999
}}
100100
>
101-
<DialogContent className="sm:max-w-[460px]">
101+
{/* One shrinkable column: a grid item's default min-width is its content, which let a long
102+
organization name push the pair and the buttons past the dialog's edge. */}
103+
<DialogContent className="grid-cols-[minmax(0,1fr)] sm:max-w-[460px]">
102104
{step === "notice" ? (
103105
<>
104106
<DialogHeader className="gap-3">
@@ -150,7 +152,7 @@ export function V2MovedNotice() {
150152
close(V2_MOVED_DISMISS_SNOOZE_MS);
151153
}}
152154
>
153-
<span className="max-w-[16rem] truncate">Open {organization.name} in v2</span>
155+
Open in v2
154156
<ArrowIcon />
155157
</a>
156158
</Button>

0 commit comments

Comments
 (0)