diff --git a/webapp/src/app/modules/dashboard/dashboard.component.html b/webapp/src/app/modules/dashboard/dashboard.component.html index 2f6410ea..927668ac 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.html +++ b/webapp/src/app/modules/dashboard/dashboard.component.html @@ -197,19 +197,43 @@ class="dashboard-institution-tabs" aria-label="Institutionen für Analysebereiche">

Institution auswählen

-
- @for (institution of dashboardInstitutions; track institution.id) { - - } +
+ +
+ @for (institution of dashboardInstitutions; track institution.id) { + + } +
+
@if (dashboardInstitutionsError) {

diff --git a/webapp/src/app/modules/dashboard/dashboard.component.scss b/webapp/src/app/modules/dashboard/dashboard.component.scss index ebc289ad..6df707ba 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.scss +++ b/webapp/src/app/modules/dashboard/dashboard.component.scss @@ -162,13 +162,58 @@ } } + .dashboard-institution-tab-bar { + display: grid; + grid-template-columns: 40px minmax(0, 1fr) 40px; + align-items: stretch; + border-bottom: 1px solid var(--sg-border); + } + + .dashboard-institution-tab-arrow { + display: grid; + width: 40px; + height: 48px; + padding: 0; + place-items: center; + border: 0; + background: transparent; + color: var(--sg-text-muted); + cursor: pointer; + transition: + color 0.15s ease, + background-color 0.15s ease, + opacity 0.15s ease; + + &:hover:not(:disabled) { + background: var(--sg-option-hover); + color: var(--sg-text); + } + + &:focus-visible { + outline-offset: -3px; + } + + &:disabled { + cursor: default; + } + + &.is-hidden { + visibility: hidden; + opacity: 0; + } + } + .dashboard-institution-tab-list { display: flex; overflow-x: auto; overflow-y: hidden; - border-bottom: 1px solid var(--sg-border); + border-bottom: 0; background: transparent; - scrollbar-width: thin; + scrollbar-width: none; + + &::-webkit-scrollbar { + display: none; + } button { position: relative; @@ -185,6 +230,7 @@ font-size: 14px; font-weight: 600; line-height: 48px; + text-align: center; white-space: nowrap; transition: color 0.15s ease,