fix: ModalContainer modals sometimes stay closed / fix autofill not working after 1 usage

This commit is contained in:
Xylight committed 2026-02-26 17:52:08 -08:00
1 parent 6a88a3baca
commit 38844827d0
4 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "photon-lemmy",
"version": "2.2.2",
"version": "2.3.0",
"license": "AGPL-3.0-only",
"devDependencies": {
"@dicebear/core": "^9.3.1",
@@ -175,6 +175,7 @@
{#snippet autofillPostModal()}
<svelte:boundary>
{#if form.url}
{#key form.url}
{#await autofill(new URL(form.url))}
<div class="w-full h-48 grid place-items-center">
<TextLoader>
@@ -209,6 +210,7 @@
<Switch class="mt-4" bind:checked={settings.forms.autosubmitAutofill}>
{$t('form.post.autosubmit')}
</Switch>
{/key}
{/if}
</svelte:boundary>
{/snippet}
@@ -161,7 +161,6 @@
}
.post-media-indicator {
/*bg-linear-180 from-zinc-900/0 to-zinc-900/95 h-16 absolute bottom-0 w-full left-0 flex items-end p-2*/
position: absolute;
bottom: 0;
left: 0;
@@ -170,6 +169,8 @@
padding: calc(var(--spacing) * 2);
height: calc(var(--spacing) * 16);
width: 100%;
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
background-image: linear-gradient(
to bottom,
@@ -4,6 +4,7 @@
import { shownModal } from './modal'
</script>
{#key $shownModal}
{#if $shownModal}
<Modal
title={$shownModal.title}
@@ -40,3 +41,4 @@
{/if}
</Modal>
{/if}
{/key}