From adb3972f7210ae261ed6a42b2ca6a613e2c23cd4 Mon Sep 17 00:00:00 2001 From: SnowCait Date: Sat, 14 Oct 2023 17:57:42 +0900 Subject: [PATCH] Thread layout --- web/src/routes/[slug=note]/+page.svelte | 45 ++++++++++++++++--- web/src/routes/[slug=note]/Counter.svelte | 6 --- web/src/routes/[slug=note]/ProfileIcon.svelte | 6 +++ 3 files changed, 46 insertions(+), 11 deletions(-) delete mode 100644 web/src/routes/[slug=note]/Counter.svelte diff --git a/web/src/routes/[slug=note]/+page.svelte b/web/src/routes/[slug=note]/+page.svelte index 3d4316839..c5324ce93 100644 --- a/web/src/routes/[slug=note]/+page.svelte +++ b/web/src/routes/[slug=note]/+page.svelte @@ -10,11 +10,12 @@ import { Api } from '$lib/Api'; import { referTags } from '$lib/EventHelper'; import { EventItem, Metadata } from '$lib/Items'; - import Counter from './Counter.svelte'; import ProfileIconList from './ProfileIconList.svelte'; import { chronologicalItem } from '$lib/Constants'; import { tick } from 'svelte'; import MuteButton from '../action/MuteButton.svelte'; + import IconRepeat from '@tabler/icons-svelte/dist/svelte/icons/IconRepeat.svelte'; + import IconHeart from '@tabler/icons-svelte/dist/svelte/icons/IconHeart.svelte'; export let data: PageData; @@ -176,10 +177,16 @@ /> - - - - +
+ + {repostEventItems.length} + +
+
+ + {reactionEventItems.length} + +
{#if $author !== undefined && item !== undefined}
@@ -199,6 +206,34 @@ />