diff --git a/src/lib/components/input/switch/TabButton.svelte b/src/lib/components/input/switch/TabButton.svelte index cc708ede..a5e8cd31 100644 --- a/src/lib/components/input/switch/TabButton.svelte +++ b/src/lib/components/input/switch/TabButton.svelte @@ -21,7 +21,7 @@ {#each routes as route (route.href)} diff --git a/src/lib/components/ui/sidebar/SidebarButton.svelte b/src/lib/components/ui/sidebar/SidebarButton.svelte index 097067aa..56468597 100644 --- a/src/lib/components/ui/sidebar/SidebarButton.svelte +++ b/src/lib/components/ui/sidebar/SidebarButton.svelte @@ -46,7 +46,7 @@ {#if customIcon} {@render customIcon({ selected })} {:else if icon} - + {/if} {/snippet} {label} diff --git a/src/lib/mono/forms/select/Select.svelte b/src/lib/mono/forms/select/Select.svelte index eba89a2f..ce35a593 100644 --- a/src/lib/mono/forms/select/Select.svelte +++ b/src/lib/mono/forms/select/Select.svelte @@ -77,7 +77,7 @@ placeholder = undefined, label = undefined, size = 'md', - shadow = 'sm', + shadow = 'none', id = generateID(), class: clazz = '', baseClass = '', diff --git a/src/routes/post/[instance]/[id=integer]/+page.svelte b/src/routes/post/[instance]/[id=integer]/+page.svelte index 2298bab8..d298f63c 100644 --- a/src/routes/post/[instance]/[id=integer]/+page.svelte +++ b/src/routes/post/[instance]/[id=integer]/+page.svelte @@ -2,7 +2,7 @@ import { page } from '$app/state' import { profile } from '$lib/auth.svelte.js' import PostActions from '$lib/components/lemmy/post/actions/PostActions.svelte' - import { mediaType } from '$lib/components/lemmy/post/helpers.js' + import { mediaType, postLink } from '$lib/components/lemmy/post/helpers.js' import PostMedia from '$lib/components/lemmy/post/media/PostMedia.svelte' import Post from '$lib/components/lemmy/post/Post.svelte' import PostMeta, { @@ -227,11 +227,12 @@ href={data.thread.value.showContext ? `/comment/${ // split first comment path to get 5 before - comments.comments[0].comment.path.split('.').slice(-5)[0] + comments.comments[0].comment.path.split('.').slice(-5)[1] }` - : undefined} + : data.thread.value.singleThread + ? postLink(data.post.value.post_view.post) + : undefined} class="hover:bg-white/50 dark:hover:bg-zinc-800/30" - onclick={data.thread.value.singleThread ? reloadComments : undefined} > {data.thread.value.showContext ? $t('routes.post.thread.context') diff --git a/src/routes/search/SearchBar.svelte b/src/routes/search/SearchBar.svelte index 9673999d..a3ecdf04 100644 --- a/src/routes/search/SearchBar.svelte +++ b/src/routes/search/SearchBar.svelte @@ -15,7 +15,7 @@
- \ No newline at end of file +