diff --git a/svelte/src/filesystem/ShareDialog.svelte b/svelte/src/filesystem/ShareDialog.svelte index 5b84410..62e1acf 100644 --- a/svelte/src/filesystem/ShareDialog.svelte +++ b/svelte/src/filesystem/ShareDialog.svelte @@ -4,6 +4,7 @@ import { fs_node_icon, fs_share_hotlink_url, fs_share_url, fs_update, type FSNod import { copy_text } from "util/Util.svelte"; import CopyButton from "layout/CopyButton.svelte"; import Dialog from "layout/Dialog.svelte"; +import { fade } from "svelte/transition"; export let nav: FSNavigator @@ -79,24 +80,9 @@ const share = async () => {
- {#if toast !== "" && !is_parent} -
{toast}
-
- {/if} - - {#if is_parent} -
- By sharing this link you also share the parent directory: - icon - {parent_node.name} -
- -
-
+ {#if toast !== ""} +
{toast}
+
{/if}
Sharing link
@@ -114,6 +100,21 @@ const share = async () => {
{direct_share_url} + + {#if is_parent} +
+
+ This link also gives access to + icon + {parent_node.name} +
+ +
+ {/if}
@@ -122,6 +123,7 @@ const share = async () => { display: flex; flex-direction: column; text-align: center; + max-width: 40em; } .link_copy { display: flex; @@ -147,6 +149,7 @@ const share = async () => { height: 1px; border: none; background-color: var(--separator); - margin: 0.5em; + margin-top: 0.5em; + margin-bottom: 0.5em; } diff --git a/svelte/src/layout/Dialog.svelte b/svelte/src/layout/Dialog.svelte index 85a81d4..cebb508 100644 --- a/svelte/src/layout/Dialog.svelte +++ b/svelte/src/layout/Dialog.svelte @@ -1,20 +1,21 @@ - - - - + - +