Skip to content

Commit c924644

Browse files
fix(web): long guide Next buttons wrap instead of overflowing (#24189)
Co-authored-by: maria-rcks <[email protected]>
1 parent d1777ea commit c924644

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/web/src/components/pullRequest/guide/GuideStop.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ export function GuideStop({
270270

271271
<footer className="flex flex-wrap items-center justify-end gap-3 border-t border-border/60 pt-4">
272272
{nextTitle !== null ? (
273-
<Button className="min-w-0" onClick={() => onStep(1)}>
274-
<span className="min-w-0 truncate">Next: {nextTitle}</span>
273+
<Button size="multiline" className="max-w-full" onClick={() => onStep(1)}>
274+
<span className="min-w-0 break-words">Next: {nextTitle}</span>
275275
<ArrowRightIcon aria-hidden />
276276
</Button>
277277
) : onFinish !== null ? (

‎apps/web/src/components/ui/button.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const buttonVariants = cva(
3030
lg: "h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9",
3131
micro:
3232
"h-5 gap-1 rounded-sm px-[calc(--spacing(1.5)-1px)] text-[11px] before:rounded-[calc(var(--radius-sm)-1px)] sm:text-[11px] [&_svg:not([class*='size-'])]:size-3 sm:[&_svg:not([class*='size-'])]:size-3",
33+
multiline:
34+
"min-h-9 px-[calc(--spacing(3)-1px)] py-[calc(--spacing(1.5)-1px)] whitespace-normal sm:min-h-8",
3335
sm: "h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] sm:h-7",
3436
"sm-multiline":
3537
"min-h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] py-[calc(--spacing(1)-1px)] whitespace-normal sm:min-h-7",

0 commit comments

Comments
 (0)