From a8ea82ec5d404c033e8376a0828a78b474cbd8e6 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 27 Sep 2024 07:18:42 +0200 Subject: [PATCH] Prettier user grid --- public/css/tw-input.css | 2 +- server/router/pages/user.templ | 53 +++++++++++++++++++--------------- 2 files changed, 31 insertions(+), 24 deletions(-) diff --git a/public/css/tw-input.css b/public/css/tw-input.css index 6f8020f..213b737 100644 --- a/public/css/tw-input.css +++ b/public/css/tw-input.css @@ -79,7 +79,7 @@ button[hx-get], button[hx-post], button[type="submit"] { - padding: 0 0.25em; + padding: 0.25em 0.75em; } button:disabled { diff --git a/server/router/pages/user.templ b/server/router/pages/user.templ index 5f1a793..1e9b42b 100644 --- a/server/router/pages/user.templ +++ b/server/router/pages/user.templ @@ -16,7 +16,7 @@ templ User(user *types.User, errors *types.UserEditError) {
@components.Figlet("random", "user")
id
{ strconv.Itoa(user.Id) }
-
name
+
name
- { user.Name } + { user.Name } - -
if errors != nil && errors.Name != "" { -
{ errors.Name }
+
{ errors.Name }
} else { - + }
+
+ + + +
joined
{ user.CreatedAt.Format(time.DateOnly) }
-
sats
+
sats
-
- { strconv.Itoa(int(user.Msats) / 1000) } - -
+
{ strconv.Itoa(int(user.Msats) / 1000) }
+ - +