From 6e75f38378e606a4776ae031dfb63adf4baffb73 Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Mon, 12 Feb 2024 10:34:07 -0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20Hide=20table=20that=20doesn'?= =?UTF-8?q?t=20display=20anything?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This table seems to not display anything but it takes up space and makes the page scroll horizontally on the dashboard. We're very specifically targeting the table and hiding it. --- app/assets/stylesheets/hyku.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/stylesheets/hyku.scss b/app/assets/stylesheets/hyku.scss index 797b7270..9fb0689b 100644 --- a/app/assets/stylesheets/hyku.scss +++ b/app/assets/stylesheets/hyku.scss @@ -482,3 +482,10 @@ body.public-facing { .mt-20 { margin-top: 20px; } + +// Making this very specific so it doesn't affect other tables. This doesn't +// appear to be actually displaying anything but it throws off the layout in +// the dashboard on mobile, so we're hiding it +body.dashboard #content-wrapper table[aria-label="Resource Types"].table.table-striped.sr-only.text-left { + display: none; +} From c588b1ea9433c20ff8f2d20a73e05e0dfcea5711 Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Mon, 12 Feb 2024 12:54:24 -0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A7=B9=20Remove=20`text-align:=20just?= =?UTF-8?q?ify`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The words looked a little too awkward when they were justified. This commit will remove that from the catalog search page on the DC view theme. --- app/assets/stylesheets/themes/dc_repository.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/stylesheets/themes/dc_repository.scss b/app/assets/stylesheets/themes/dc_repository.scss index 273146d3..d171fc9e 100644 --- a/app/assets/stylesheets/themes/dc_repository.scss +++ b/app/assets/stylesheets/themes/dc_repository.scss @@ -957,7 +957,6 @@ body.dc_repository { .abstract-search-results { p { padding-right: $golden-ratio-2; - text-align: justify; font-size: $type-3; line-height: $type-4; }