fix: broken 'all comments' links

This commit is contained in:
James Xylight committed 2025-08-24 15:37:08 -07:00
1 parent 4a94fa0b36
commit 8ec83db6f3
7 files changed
+11 -10

No files matched your search

@@ -21,7 +21,7 @@
<svelte:element
this={href ? 'a' : 'button'}
class={[
'px-2.5 py-1 rounded-xl text-sm font-medium transition-colors duration-75 relative cursor-pointer border',
'px-2.5 py-1 rounded-xl text-sm font-medium transition-colors duration-75 relative cursor-pointer border shadow-xs',
selected
? 'border-transparent bg-primary-900 dark:bg-primary-100 text-slate-50 dark:text-zinc-900 hover:brightness-90 active:brightness-75'
: ' dark:bg-zinc-900/50 bg-white border-slate-200 dark:border-zinc-800 hover:bg-slate-100 hover:dark:bg-zinc-800 active:bg-slate-200 active:dark:bg-zinc-900',
@@ -32,7 +32,7 @@
<nav
class={[
'flex flex-row items-center justify-center sm:justify-start my-2 sm:mt-0 flex-wrap z-20',
style == 'header' ? 'p-1 gap-x-8 gap-y-4' : 'gap-3',
style == 'header' ? 'p-1 gap-x-8 gap-y-4' : 'gap-2',
]}
>
{#each routes as route (route.href)}
@@ -46,7 +46,7 @@
{#if customIcon}
{@render customIcon({ selected })}
{:else if icon}
<Icon src={icon} mini size="18" />
<Icon src={icon} solid size="18" />
{/if}
{/snippet}
{label}
+1 -1
View File
@@ -77,7 +77,7 @@
placeholder = undefined,
label = undefined,
size = 'md',
shadow = 'sm',
shadow = 'none',
id = generateID(),
class: clazz = '',
baseClass = '',
@@ -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')
+1 -1
View File
@@ -15,7 +15,7 @@
<div class="mt-4 mb-0 sticky z-30 top-6 lg:top-22">
<div
class="flex gap-2 flex-row items-center w-full text-base h-10 drop-shadow-md"
class="flex gap-2 flex-row items-center w-full text-base h-10 drop-shadow-xl"
>
<TextInput
bind:value={query}
+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none">
<circle cx="50" cy="50" fill="white" r="50" />
<path d="M45 20.8868C48.094 19.1004 51.906 19.1004 55 20.8868L72.7128 31.1132C75.8068 32.8996 77.7128 36.2008 77.7128 39.7735V60.2265C77.7128 63.7992 75.8068 67.1004 72.7128 68.8868L55 79.1132C51.906 80.8996 48.094 80.8996 45 79.1132L27.2872 68.8868C24.1932 67.1004 22.2872 63.7992 22.2872 60.2265V39.7735C22.2872 36.2008 24.1932 32.8996 27.2872 31.1132L45 20.8868Z" fill="black"/>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 535 B

After

Width:  |  Height:  |  Size: 536 B