From e0f7c23c8b6e0c4f28b7958e2516b5966e4f0717 Mon Sep 17 00:00:00 2001 From: futa-ikeda Date: Fri, 15 Nov 2024 17:09:18 -0500 Subject: [PATCH 1/2] Scroll tabs in mobile view --- .../-components/institutional-dashboard-wrapper/styles.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/institutions/dashboard/-components/institutional-dashboard-wrapper/styles.scss b/app/institutions/dashboard/-components/institutional-dashboard-wrapper/styles.scss index 08a87d59c7..4e024d7996 100644 --- a/app/institutions/dashboard/-components/institutional-dashboard-wrapper/styles.scss +++ b/app/institutions/dashboard/-components/institutional-dashboard-wrapper/styles.scss @@ -29,9 +29,9 @@ @include tab-list; white-space: nowrap; display: flex; - flex-wrap: wrap; + flex-wrap: nowrap; position: relative; - overflow: visible; + overflow-x: auto; margin-bottom: 0; border-bottom: 0; From 0363ae0f3e64475baa52b6feb7055c195d2b8bd0 Mon Sep 17 00:00:00 2001 From: futa-ikeda Date: Fri, 15 Nov 2024 17:10:15 -0500 Subject: [PATCH 2/2] Group users tab top bar controls for mobile view --- .../institutional-users-list/styles.scss | 15 ++ .../institutional-users-list/template.hbs | 184 +++++++++--------- 2 files changed, 110 insertions(+), 89 deletions(-) diff --git a/app/institutions/dashboard/-components/institutional-users-list/styles.scss b/app/institutions/dashboard/-components/institutional-users-list/styles.scss index 08e3b9219f..a3c1de0d03 100644 --- a/app/institutions/dashboard/-components/institutional-users-list/styles.scss +++ b/app/institutions/dashboard/-components/institutional-users-list/styles.scss @@ -292,3 +292,18 @@ input:checked + .slider::before { } } +.flex { + display: flex; + align-items: center; +} + +.top-wrapper { + display: flex; + flex-wrap: wrap; + justify-content: flex-end; +} + +.right-button-group { + justify-content: flex-end; + margin-right: 15px; +} diff --git a/app/institutions/dashboard/-components/institutional-users-list/template.hbs b/app/institutions/dashboard/-components/institutional-users-list/template.hbs index 27fb78b049..9dc6871c85 100644 --- a/app/institutions/dashboard/-components/institutional-users-list/template.hbs +++ b/app/institutions/dashboard/-components/institutional-users-list/template.hbs @@ -8,97 +8,103 @@ {{t 'institutions.dashboard.users_list.total_users'}} -
- - -
- - {{department}} - - - - {{#if dd.isOpen}} -
-
- {{#each this.columns as |column|}} - - {{/each}} -
-
- - -
+
+
+
+ +
- {{/if}} - -
- {{#if @institution.linkToExternalReportsArchive}} - - - {{t 'institutions.dashboard.download_past_reports_label'}} - - - - {{/if}} -
- - - - - - - - - - - + {{department}} + +
+
+ + + {{#if dd.isOpen}} +
+
+ {{#each this.columns as |column|}} + + {{/each}} +
+
+ + +
+
+ {{/if}} +
+
+ {{#if @institution.linkToExternalReportsArchive}} + + + {{t 'institutions.dashboard.download_past_reports_label'}} + + + + {{/if}} +
+ + + + + + + + + + + +
+