Skip to content

Commit 04707e4

Browse files
neven4nsarrazin
andauthored
Fix "login" button text wrap on mobile (#1315)
Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>
1 parent 3704cc0 commit 04707e4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/lib/components/DisclaimerModal.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@
5454
<form action="{base}/login" target="_parent" method="POST" class="w-full">
5555
<button
5656
type="submit"
57-
class="flex w-full items-center justify-center whitespace-nowrap rounded-full border-2 border-black bg-black px-5 py-2 text-lg font-semibold text-gray-100 transition-colors hover:bg-gray-900"
57+
class="flex w-full flex-wrap items-center justify-center whitespace-nowrap rounded-full border-2 border-black bg-black px-5 py-2 text-lg font-semibold text-gray-100 transition-colors hover:bg-gray-900"
5858
>
5959
Sign in
6060
{#if envPublic.PUBLIC_APP_NAME === "HuggingChat"}
61-
with <LogoHuggingFaceBorderless classNames="text-xl mr-1 ml-1.5 flex-none" /> Hugging Face
61+
<span class="flex items-center">
62+
&nbsp;with <LogoHuggingFaceBorderless classNames="text-xl mr-1 ml-1.5 flex-none" /> Hugging
63+
Face
64+
</span>
6265
{/if}
6366
</button>
6467
</form>

src/lib/components/LoginModal.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@
3737
{#if $page.data.loginRequired}
3838
<button
3939
type="submit"
40-
class="flex w-full items-center justify-center whitespace-nowrap rounded-full bg-black px-5 py-2 text-center text-lg font-semibold text-gray-100 transition-colors hover:bg-gray-900"
40+
class="flex w-full flex-wrap items-center justify-center whitespace-nowrap rounded-full bg-black px-5 py-2 text-center text-lg font-semibold text-gray-100 transition-colors hover:bg-gray-900"
4141
>
4242
Sign in
4343
{#if envPublic.PUBLIC_APP_NAME === "HuggingChat"}
44-
with <LogoHuggingFaceBorderless classNames="text-xl mr-1 ml-1.5" /> Hugging Face
44+
<span class="flex items-center">
45+
&nbsp;with <LogoHuggingFaceBorderless classNames="text-xl mr-1 ml-1.5" /> Hugging Face
46+
</span>
4547
{/if}
4648
</button>
4749
{:else}

0 commit comments

Comments
 (0)