From d0e9dc8d7035e761a6deefa132811d047c67e612 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 26 Dec 2021 14:46:42 -0500 Subject: [PATCH] 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(-) diff --git a/users/grfn/bbbg/src/bbbg/handlers/events.clj b/users/grfn/bbbg/src/bbbg/handlers/events.clj index a5c9bdd5d..2264d36e7 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 ca9148efd..0ea0d4472 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