Spaces:
Paused
Paused
Fix "login" button text wrap on mobile (#1315)
Browse filesCo-authored-by: Nathan Sarrazin <[email protected]>
src/lib/components/DisclaimerModal.svelte
CHANGED
|
@@ -54,11 +54,14 @@
|
|
| 54 |
<form action="{base}/login" target="_parent" method="POST" class="w-full">
|
| 55 |
<button
|
| 56 |
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"
|
| 58 |
>
|
| 59 |
Sign in
|
| 60 |
{#if envPublic.PUBLIC_APP_NAME === "HuggingChat"}
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
| 62 |
{/if}
|
| 63 |
</button>
|
| 64 |
</form>
|
|
|
|
| 54 |
<form action="{base}/login" target="_parent" method="POST" class="w-full">
|
| 55 |
<button
|
| 56 |
type="submit"
|
| 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"
|
| 58 |
>
|
| 59 |
Sign in
|
| 60 |
{#if envPublic.PUBLIC_APP_NAME === "HuggingChat"}
|
| 61 |
+
<span class="flex items-center">
|
| 62 |
+
with <LogoHuggingFaceBorderless classNames="text-xl mr-1 ml-1.5 flex-none" /> Hugging
|
| 63 |
+
Face
|
| 64 |
+
</span>
|
| 65 |
{/if}
|
| 66 |
</button>
|
| 67 |
</form>
|
src/lib/components/LoginModal.svelte
CHANGED
|
@@ -37,11 +37,13 @@
|
|
| 37 |
{#if $page.data.loginRequired}
|
| 38 |
<button
|
| 39 |
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"
|
| 41 |
>
|
| 42 |
Sign in
|
| 43 |
{#if envPublic.PUBLIC_APP_NAME === "HuggingChat"}
|
| 44 |
-
|
|
|
|
|
|
|
| 45 |
{/if}
|
| 46 |
</button>
|
| 47 |
{:else}
|
|
|
|
| 37 |
{#if $page.data.loginRequired}
|
| 38 |
<button
|
| 39 |
type="submit"
|
| 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"
|
| 41 |
>
|
| 42 |
Sign in
|
| 43 |
{#if envPublic.PUBLIC_APP_NAME === "HuggingChat"}
|
| 44 |
+
<span class="flex items-center">
|
| 45 |
+
with <LogoHuggingFaceBorderless classNames="text-xl mr-1 ml-1.5" /> Hugging Face
|
| 46 |
+
</span>
|
| 47 |
{/if}
|
| 48 |
</button>
|
| 49 |
{:else}
|