wip: update design

This commit is contained in:
reya
2024-02-16 14:11:49 +07:00
parent 296b11b7b8
commit f28a7ae82f
20 changed files with 218 additions and 172 deletions
@@ -1,4 +1,6 @@
import { ReplyList, ThreadNote } from "@lume/ui";
import { createLazyFileRoute } from "@tanstack/react-router";
import { WindowVirtualizer } from "virtua";
export const Route = createLazyFileRoute("/events/$eventId")({
component: Event,
@@ -7,5 +9,15 @@ export const Route = createLazyFileRoute("/events/$eventId")({
function Event() {
const { eventId } = Route.useParams();
return <div>{eventId}</div>;
return (
<div className="relative h-screen w-screen overflow-y-auto overflow-x-hidden">
<div data-tauri-drag-region className="h-11 w-full" />
<WindowVirtualizer>
<div className="px-6">
<ThreadNote eventId={eventId} />
<ReplyList eventId={eventId} />
</div>
</WindowVirtualizer>
</div>
);
}