From edd16bcd944c33e705e97c9a4a633955ffb02735 Mon Sep 17 00:00:00 2001 From: Dominic Ferrando Date: Fri, 18 Apr 2025 16:19:03 -0400 Subject: [PATCH] Small tweaks --- web/views/board.templ | 6 ++++-- web/views/thread.templ | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/web/views/board.templ b/web/views/board.templ index d2dcf23..5c7c2ea 100644 --- a/web/views/board.templ +++ b/web/views/board.templ @@ -16,6 +16,8 @@ templ NewThreadForm(board database.Board) { _="on htmx:afterRequest hide me then show #newThreadBtn + then set #newPostBody.value to '' + then set #newPostFile.value to '' then trigger refreshThreads on body" > @@ -26,11 +28,11 @@ templ NewThreadForm(board database.Board) { - + - +
Comment
File
diff --git a/web/views/thread.templ b/web/views/thread.templ index e4784ce..2800695 100644 --- a/web/views/thread.templ +++ b/web/views/thread.templ @@ -39,6 +39,7 @@ templ Thread(board database.Board, thread database.Thread, posts []database.Post board.Slug, thread.Id) } _="on htmx:afterRequest set #newPostBody.value to '' + then set #newPostFile.value to '' then trigger refreshPosts on body" > @@ -49,7 +50,7 @@ templ Thread(board database.Board, thread database.Thread, posts []database.Post - +
File
@@ -72,10 +73,9 @@ templ Thread(board database.Board, thread database.Thread, posts []database.Post

{ posts[0].Body }

-
+
+ @ThreadPosts(posts[1:]) +
} }