misc: bump version
This commit is contained in:
1 parent
1e8958471f
commit
5a8499fd7b
3 files changed
+12
-8
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "photon-lemmy",
|
||||
"version": "1.31.0-fix.1",
|
||||
"version": "1.31.1",
|
||||
"devDependencies": {
|
||||
"@catdadcode/svelte-adapter-bun": "^0.5.7",
|
||||
"@dicebear/core": "^8.0.1",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
import { onMount } from 'svelte'
|
||||
import { t } from '$lib/translations'
|
||||
import { slide } from 'svelte/transition'
|
||||
import { expoOut } from 'svelte/easing'
|
||||
import { expoInOut, expoOut } from 'svelte/easing'
|
||||
|
||||
export let node: CommentNodeI
|
||||
export let postId: number
|
||||
@@ -107,10 +107,9 @@
|
||||
: ''} {highlight} {$$props.class}"
|
||||
id="#{node.comment_view.comment.id.toString()}"
|
||||
>
|
||||
<Disclosure bind:open class="flex flex-col">
|
||||
<div
|
||||
slot="summary"
|
||||
class="flex flex-row cursor-pointer gap-2 items-center group text-[13px] flex-wrap"
|
||||
<button
|
||||
on:click={() => (open = !open)}
|
||||
class="flex flex-row cursor-pointer gap-2 items-center group text-[13px] flex-wrap w-full"
|
||||
>
|
||||
<span class:font-bold={op} class="flex flex-row gap-1 items-center">
|
||||
<UserLink
|
||||
@@ -159,7 +158,9 @@
|
||||
/>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
{#if open}
|
||||
<div transition:slide={{ duration: 500, easing: expoOut }}>
|
||||
<div
|
||||
class="flex flex-col whitespace-pre-wrap
|
||||
max-w-full gap-1 mt-1 relative"
|
||||
@@ -213,5 +214,6 @@
|
||||
<div class="bg-transparent dark:bg-transparent">
|
||||
<slot />
|
||||
</div>
|
||||
</Disclosure>
|
||||
</div>
|
||||
{/if}
|
||||
</li>
|
||||
@@ -27,6 +27,7 @@ export function buildCommentsTree(
|
||||
baseDepth: number = 0,
|
||||
filter: (c: CommentView) => boolean = (c) => true
|
||||
): CommentNodeI[] {
|
||||
const start = performance.now()
|
||||
const map = new Map<number, CommentNodeI>()
|
||||
|
||||
let min_depth = Number.MAX_VALUE
|
||||
@@ -68,6 +69,7 @@ export function buildCommentsTree(
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`Built tree in ${performance.now() - start}ms`)
|
||||
return tree
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user