diff --git a/src/lib/components/lemmy/comment/CommentActions.svelte b/src/lib/components/lemmy/comment/CommentActions.svelte index 5c749bd1..3e5d72a0 100644 --- a/src/lib/components/lemmy/comment/CommentActions.svelte +++ b/src/lib/components/lemmy/comment/CommentActions.svelte @@ -11,7 +11,7 @@ import { deleteItem, save } from '$lib/lemmy/contentview.js' import { settings } from '$lib/settings.svelte' import type { CommentView } from 'lemmy-js-client' - import { Button, Menu, MenuButton, MenuDivider } from 'mono-svelte' + import { Button, Menu, MenuButton } from 'mono-svelte' import { Bookmark, BookmarkSlash, @@ -69,15 +69,14 @@ title={$t('comment.actions.label')} color="tertiary" rounding="pill" - size="square-sm" + size="square-md" class="text-slate-600 dark:text-zinc-400" > {#snippet prefix()} - + {/snippet} {/snippet} - {$t('comment.actions.label')} { if (navigator.share) diff --git a/src/lib/components/lemmy/comment/CommentListVirtualizer.svelte b/src/lib/components/lemmy/comment/CommentListVirtualizer.svelte index 676951dd..9fde335d 100644 --- a/src/lib/components/lemmy/comment/CommentListVirtualizer.svelte +++ b/src/lib/components/lemmy/comment/CommentListVirtualizer.svelte @@ -41,19 +41,14 @@
{#if offsetEl} {#snippet item(index)} -
+
[nodes[index]], v => (nodes[index] = v[0])} {post} diff --git a/src/lib/components/lemmy/post/actions/PostActionsMenu.svelte b/src/lib/components/lemmy/post/actions/PostActionsMenu.svelte index c80e9886..c05e1346 100644 --- a/src/lib/components/lemmy/post/actions/PostActionsMenu.svelte +++ b/src/lib/components/lemmy/post/actions/PostActionsMenu.svelte @@ -1,28 +1,25 @@ - - {$t('post.actions.more.actions')} - {#if profile.current?.user && profile.current?.jwt && profile.current.user.local_user_view.person.id == post.creator.id} (editing = true)}> {#snippet prefix()} @@ -65,52 +72,52 @@ : $t('post.actions.more.markRead')} {/if} - { - if (navigator.share) - navigator.share?.({ - url: localShare - ? `${instanceToURL(profile.current.instance)}/post/${post.post.id}` - : post.post.ap_id, - }) - else - navigator.clipboard.writeText( - localShare - ? `${instanceToURL(profile.current.instance)}/post/${post.post.id}` - : post.post.ap_id, - ) - toast({ content: $t('toast.copied') }) - }} - class="flex-1 py-0!" -> - {#snippet prefix()} - - {/snippet} - {$t('post.actions.more.share')} -
- {#if !post.post.local} -
- - -
- {/if} -
+
+ share()} + class={['flex-1', !post.post.local && 'rounded-r-xl']} + > + {#snippet prefix()} + + {/snippet} + {$t('post.actions.more.share')} + + + +
e.stopPropagation()} + > + {#if !post.post.local} + + {#snippet target()} + + {/snippet} + share(true)}> + {#snippet prefix()} + + {/snippet} + {$t('filter.location.global')} + + share(false)}> + {#snippet prefix()} + + {/snippet} + {$t('filter.location.local')} + + + {/if} +
+
{#if profile.current?.jwt} { diff --git a/src/lib/components/lemmy/post/link/PostLink.svelte b/src/lib/components/lemmy/post/link/PostLink.svelte index 5dc65a08..ccb58c06 100644 --- a/src/lib/components/lemmy/post/link/PostLink.svelte +++ b/src/lib/components/lemmy/post/link/PostLink.svelte @@ -1,8 +1,9 @@ - @@ -89,23 +90,20 @@ {:else} - + {/if} diff --git a/src/lib/mono/materials/Material.svelte b/src/lib/mono/materials/Material.svelte index 35d666ac..d14892c5 100644 --- a/src/lib/mono/materials/Material.svelte +++ b/src/lib/mono/materials/Material.svelte @@ -58,8 +58,8 @@ let { elevation = 'flat', padding = 'md', - rounding = 'lg', - color = 'default', + rounding = 'xl', + color = 'uniform', element = 'div', class: clazz = '', children, diff --git a/src/lib/mono/popover/Menu.svelte b/src/lib/mono/popover/Menu.svelte index c7f2ba23..522dfde7 100644 --- a/src/lib/mono/popover/Menu.svelte +++ b/src/lib/mono/popover/Menu.svelte @@ -49,12 +49,10 @@ > {#snippet popover()}
{@render children?.(open)} diff --git a/src/lib/mono/popover/MenuButton.svelte b/src/lib/mono/popover/MenuButton.svelte index 9a990f30..6569295b 100644 --- a/src/lib/mono/popover/MenuButton.svelte +++ b/src/lib/mono/popover/MenuButton.svelte @@ -37,9 +37,10 @@