From 6dde9f859c24732d8fca53d15cf53dee3a1c8917 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 3 Dec 2024 05:49:57 +0100 Subject: [PATCH] Fix link padding --- public/css/base.css | 2 +- server/router/pages/index.templ | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/css/base.css b/public/css/base.css index 5672ecb..f8f61d9 100644 --- a/public/css/base.css +++ b/public/css/base.css @@ -79,7 +79,7 @@ button[hx-get], button[hx-post], button[type="submit"] { - padding: 0.25em 0.75em; + padding: 0 0.25em; } button:disabled { diff --git a/server/router/pages/index.templ b/server/router/pages/index.templ index cb77b7e..d70c223 100644 --- a/server/router/pages/index.templ +++ b/server/router/pages/index.templ @@ -26,14 +26,14 @@ templ Index(markets []types.Market) { hx-push-url="true" >
- - + +
if ctx.Value(c.ReqPathContextKey).(string) == "/" {
for _, m := range markets { - { m.Question } + { m.Question }
{ m.User.Name } / { humanize.Time(m.CreatedAt) } / { humanize.Time(m.EndDate) }
{ fmt.Sprintf("%.2f%%", m.Pyes * 100) }