Rework recent activity page

This commit is contained in:
Jon Staab
2026-02-03 09:49:44 -08:00
parent 4b8cf53731
commit 1da6833c71
6 changed files with 98 additions and 147 deletions
+1 -11
View File
@@ -1,6 +1,5 @@
<script lang="ts">
import type {ComponentProps} from "svelte"
import {formatTimestamp} from "@welshman/lib"
import {getTagValue} from "@welshman/util"
import Content from "@app/components/Content.svelte"
@@ -11,16 +10,7 @@
<div class="flex flex-col gap-2">
{#if title}
<div class="flex w-full items-center justify-between gap-2">
<p class="text-xl">{title}</p>
<p class="text-sm opacity-75">
{formatTimestamp(props.event.created_at)}
</p>
</div>
{:else}
<p class="mb-3 h-0 text-xs opacity-75">
{formatTimestamp(props.event.created_at)}
</p>
<p class="text-xl">{title}</p>
{/if}
{#if props.event.content}
<Content {...props} />