Skip to content

Commit 9b6611f

Browse files
committed
fix: prevent hero title wrapping and fix text loop width
1 parent 95a3951 commit 9b6611f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/motion-core/text-loop/TextLoop.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787

8888
<span
8989
class={cn("font-inherit relative inline-block text-inherit", className)}
90-
style="clip-path: inset(-100vh 0 -100vh 0);"
90+
style="clip-path: inset(-100vh 0 -100vh 0); min-width: 200px;"
9191
>
9292
<span class="font-inherit invisible inline-block w-0 text-inherit" aria-hidden="true">&nbsp;</span
9393
>{#key currentIndex}<span

src/routes/(components)/hero.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
<!-- Hero Title - above fold, play once -->
5555
<div class="flex min-h-25 flex-col items-center justify-center md:min-h-55 lg:min-h-52">
56-
<h1 class="text-4xl font-bold tracking-tight md:text-6xl lg:text-7xl">
56+
<h1 class="text-4xl font-bold tracking-tight whitespace-nowrap md:text-6xl lg:text-7xl">
5757
<span>{currentText === "Payments" ? "Generate" : "Track"}</span>
5858
<span class="inline-flex justify-center align-baseline">
5959
<TextLoop class="text-primary" {texts} bind:currentIndex interval={2500} />
@@ -73,7 +73,7 @@
7373
</p>
7474

7575
<!-- Buttons - above fold, play once, no Magnetic -->
76-
<div class="flex flex-col justify-center gap-4 sm:flex-row">
76+
<div class="flex min-h-28 flex-col justify-center gap-4 sm:flex-row">
7777
{#if fullyAuthenticated}
7878
<Button
7979
data-sveltekit-reload

0 commit comments

Comments
 (0)