diff --git a/views/subreddits/details/filter.templ b/views/subreddits/details/filter.templ index 09516c1..a91506f 100644 --- a/views/subreddits/details/filter.templ +++ b/views/subreddits/details/filter.templ @@ -31,7 +31,7 @@ templ searchInput(params api.SubredditGetByNameImageParams) { NSFW - @@ -62,16 +62,12 @@ templ limitInput(params api.SubredditGetByNameImageParams) { } templ limitOption(params api.SubredditGetByNameImageParams, value int) { - if int(params.Limit) == value { - - } else { - - } + } templ deviceInput(data Data) { - if len(data.Devices) == 0 { } else { diff --git a/views/subreddits/filter.templ b/views/subreddits/filter.templ index 37b45fc..4ae9e51 100644 --- a/views/subreddits/filter.templ +++ b/views/subreddits/filter.templ @@ -27,7 +27,7 @@ templ searchInput(params api.ListSubredditsParams) { type="text" id="search" name="q" - class="input input-bordered" + class="input input-bordered w-full" value={ params.Q } placeholder="Filter Subreddit" /> @@ -35,7 +35,7 @@ templ searchInput(params api.ListSubredditsParams) { templ nsfwSelect(params api.ListSubredditsParams) { - @@ -44,7 +44,7 @@ templ nsfwSelect(params api.ListSubredditsParams) { templ orderInput(params api.ListSubredditsParams) { - @@ -53,7 +53,7 @@ templ orderInput(params api.ListSubredditsParams) { templ sortInput(params api.ListSubredditsParams) { - diff --git a/views/subreddits/view.templ b/views/subreddits/view.templ index 31ffe7b..a4bace0 100644 --- a/views/subreddits/view.templ +++ b/views/subreddits/view.templ @@ -28,11 +28,7 @@ templ Content(c *views.Context, data Data) { @components.Container() {

Subreddits

-
- - @icons.PlusCircleFill("w-6 h-6") - -
+ @actionButton()
if data.Subreddits.Total > 0 { @@ -86,3 +82,36 @@ templ imagePlaceholder() { } + +templ actionButton() { +
+ +
+}