From d0e9dc8d7035e761a6deefa132811d047c67e612 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 26 Dec 2021 14:46:42 -0500 Subject: fix(grfn/bbbg): Fix attendee list styling on non-mobile Change-Id: I0b9671dd7e43cf25e8313a10e31b1f19cf897371 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4682 Tested-by: BuildkiteCI Reviewed-by: grfn Autosubmit: grfn --- users/grfn/bbbg/src/bbbg/handlers/events.clj | 3 +-- users/grfn/bbbg/src/bbbg/styles.clj | 12 +++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'users/grfn/bbbg') diff --git a/users/grfn/bbbg/src/bbbg/handlers/events.clj b/users/grfn/bbbg/src/bbbg/handlers/events.clj index a5c9bdd5d65a..2264d36e7d67 100644 --- a/users/grfn/bbbg/src/bbbg/handlers/events.clj +++ b/users/grfn/bbbg/src/bbbg/handlers/events.clj @@ -102,8 +102,7 @@ [:th "Meetup Name"] [:th "Discord Name"] [:th "Signed In"] - [:th "Last Vaccination Check"] - [:th "Notes"]] + [:th "Last Vaccination Check"]] [:tbody (for [attendee attendees] [:tr diff --git a/users/grfn/bbbg/src/bbbg/styles.clj b/users/grfn/bbbg/src/bbbg/styles.clj index ca9148efdf92..0ea0d4472e72 100644 --- a/users/grfn/bbbg/src/bbbg/styles.clj +++ b/users/grfn/bbbg/src/bbbg/styles.clj @@ -52,6 +52,12 @@ :max-width mobile-width} [:& rules])) +(defn not-mobile [& rules] + (at-media + {:screen true + :min-width mobile-width} + [:& rules])) + ;;; @@ -321,7 +327,11 @@ [:.attendee-name {:font-weight "bold" - :margin-bottom "0.9rem"}])]) + :margin-bottom "0.9rem"}]) + + (not-mobile + [:.mobile-label + {:display :none}])]) (defstyles events [:.events-list -- cgit 1.4.1