view(subreddits-filter-bar): update spacing
Some checks failed
/ push (push) Has been cancelled

This commit is contained in:
Tigor Hutasuhut 2024-05-28 16:42:57 +07:00
parent 4f3ba41237
commit d5db5b81f9
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ templ Filter(params api.ListSubredditsParams) {
hx-include="this"
hx-push-url="true"
hx-swap="outerHTML"
class="grid grid-cols-[1fr,4fr] sm:grid-cols-[1fr,4fr,1fr,4fr] items-center gap-4"
class="grid grid-cols-[1fr,3fr] sm:grid-cols-[1fr,4fr,1fr,4fr] items-center gap-4"
>
@searchInput(params)
@nsfwSelect(params)

View file

@ -43,7 +43,7 @@ templ Content(c *views.Context, data Data) {
<h3>No Subreddits Found</h3>
<p>Click <a class="text-primary" href="/subreddits/add">here</a> to add a new subreddit.</p>
} else {
<h2 class="my-4">{ strconv.FormatInt(data.Subreddits.Total, 10) } Subreddits Registered</h2>
<h2 class="my-8">{ strconv.FormatInt(data.Subreddits.Total, 10) } Subreddits Registered</h2>
}
<div class="flex flex-wrap gap-1 justify-around" hx-boost="true">
for _, subreddit := range data.Subreddits.Data {