From 6127d80f2ac19489798f8ea7dc9ce702be861493 Mon Sep 17 00:00:00 2001 From: "Prad Nukala (aider)" Date: Tue, 10 Dec 2024 00:46:38 -0500 Subject: [PATCH] style: Improve mobile responsiveness for create profile form --- pkg/common/styles/forms/create_profile.templ | 31 +++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/pkg/common/styles/forms/create_profile.templ b/pkg/common/styles/forms/create_profile.templ index 8320d4b55..ce33babe2 100644 --- a/pkg/common/styles/forms/create_profile.templ +++ b/pkg/common/styles/forms/create_profile.templ @@ -18,7 +18,7 @@ func (d CreateProfileData) IsHumanLabel() string { // ProfileForm is a standard form styled like a card templ CreateProfile(action string, method string, data CreateProfileData) {
- +
@@ -47,12 +47,29 @@ templ CreateProfile(action string, method string, data CreateProfileData) {
+ .card-form { + margin: 1rem; + } + .card-form [slot='footer'] { + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; + gap: 1rem; + } + @media (max-width: 640px) { + .card-form { + margin: 0.5rem; + } + .card-form [slot='footer'] { + flex-direction: column-reverse; + width: 100%; + } + .card-form [slot='footer'] sl-button { + width: 100%; + } + } + }