Skip to content

Commit d6763a0

Browse files
committed
fix(dashboard): truncate long checkout URL from the start
Button wraps children in an unconstrained inline-flex span, so the long checkout URL sized that wrapper past the button and got clipped on both ends by justify-center, hiding the start of the URL. Constrain the wrapper from the call site so the URL can shrink, and left-align it so the ellipsis lands at the end.
1 parent 094b9cb commit d6763a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vite/src/components/forms/shared/UrlSuccessView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export function UrlSuccessView({
4646
</Button>
4747
<CopyButton
4848
text={url}
49-
className="w-full"
50-
innerClassName="text-xs text-tertiary-foreground font-mono min-w-0 flex-1"
49+
className="w-full [&>span]:min-w-0 [&>span]:max-w-full"
50+
innerClassName="text-xs text-tertiary-foreground font-mono min-w-0 flex-1 text-left"
5151
/>
5252
</SheetFooter>
5353
</>

0 commit comments

Comments
 (0)