From a1ccf4d9d0471f3c7b831bd71dc85c117efe1da7 Mon Sep 17 00:00:00 2001 From: Xylight Date: Fri, 10 Jul 2026 18:01:11 -0700 Subject: [PATCH] fix: clip material background to padding-box to stop weird firefox glitch --- src/app.css | 1 - .../feature/community/CommunityItem.svelte | 3 +- src/lib/ui/shared/button/Button.svelte | 19 +- src/lib/ui/shared/forms/TextInput.svelte | 3 +- src/lib/ui/shared/materials/Material.svelte | 13 +- src/lib/ui/shared/popover/MenuButton.svelte | 2 +- src/routes/login/+page.svelte | 202 +++++++++--------- 7 files changed, 120 insertions(+), 123 deletions(-) diff --git a/src/app.css b/src/app.css index a8053e80..e908745d 100644 --- a/src/app.css +++ b/src/app.css @@ -14,7 +14,6 @@ --animate-pop-in: pop-in 0.8s cubic-bezier(0.075, 0.82, 0.165, 1) forwards; --ease-cubic: cubic-bezier(0.075, 0.82, 0.165, 1); - --spacing-22: 88px; --color-slate-25: rgb(252 253 254); --color-zinc-925: 28 28 32; diff --git a/src/lib/feature/community/CommunityItem.svelte b/src/lib/feature/community/CommunityItem.svelte index fe268ef2..1ac3c84b 100644 --- a/src/lib/feature/community/CommunityItem.svelte +++ b/src/lib/feature/community/CommunityItem.svelte @@ -21,6 +21,7 @@ import Subscribe from '../../../routes/communities/Subscribe.svelte' import { addSubscription } from '../user' import CommunityCard from './CommunityCard.svelte' + import { settings } from '$lib/app/settings.svelte' interface Props { community: CommunityView @@ -44,7 +45,7 @@ {/snippet} {$t('account.login')} -
-
{ - e.preventDefault() - logIn() - }} - class="flex flex-col gap-5" - > -
- {@render children?.()} -
{$t('account.login')}
- -
- {#if form.client.name == 'piefed'} - - {$t('account.piefedGate')} - - {/if} -
+ { + e.preventDefault() + logIn() + }} + class="flex flex-col gap-5 max-w-xl w-full mx-auto h-max my-auto" +> +
+ {@render children?.()} +
{$t('account.login')}
+ +
+ {#if form.client.name == 'piefed'} + + {$t('account.piefedGate')} + + {/if} +
+ + {#if !LINKED_INSTANCE_URL} - {#if !LINKED_INSTANCE_URL} - - {#snippet customLabel()} - {$t('form.instance')} - - {#if detectedClient} - - {detectedClient} - - {:else if detectedClient === null} - - {/if} - - {/snippet} - - {/if} -
- -
+ + +
+ + -
- - + {#if !LINKED_INSTANCE_URL} + - - {#if !LINKED_INSTANCE_URL} - - {/if} - - -
+ {/if} + +