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 - + *No Filter Hide Show Only @@ -62,16 +62,12 @@ templ limitInput(params api.SubredditGetByNameImageParams) { } templ limitOption(params api.SubredditGetByNameImageParams, value int) { - if int(params.Limit) == value { - { strconv.Itoa(value) } - } else { - { strconv.Itoa(value) } - } + { strconv.Itoa(value) } } templ deviceInput(data Data) { Device - + if len(data.Devices) == 0 { No Devices } 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) { NSFW - + 1 }>*No Filter Hide Show Only @@ -44,7 +44,7 @@ templ nsfwSelect(params api.ListSubredditsParams) { templ orderInput(params api.ListSubredditsParams) { Order By - + Latest Update Created Name @@ -53,7 +53,7 @@ templ orderInput(params api.ListSubredditsParams) { templ sortInput(params api.ListSubredditsParams) { Sort - + Descending Ascending 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() { + + + + @icons.Kebab("h-8 w-8") + + + + Add New Subreddit + + + + Scroll to Top + + + + +}