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) }