fix: ModalContainer modals sometimes stay closed / fix autofill not working after 1 usage
This commit is contained in:
4 files changed
+9
-4
No files matched your search
+1
-1
@@ -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,7 +4,8 @@
|
||||
import { shownModal } from './modal'
|
||||
</script>
|
||||
|
||||
{#if $shownModal}
|
||||
{#key $shownModal}
|
||||
{#if $shownModal}
|
||||
<Modal
|
||||
title={$shownModal.title}
|
||||
dismissable={$shownModal.dismissable}
|
||||
@@ -39,4 +40,5 @@
|
||||
</div>
|
||||
{/if}
|
||||
</Modal>
|
||||
{/if}
|
||||
{/if}
|
||||
{/key}
|
||||
Reference in new issue
Block a user