Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
fix(frontend:layout): improve mobile breadcrumb display
johavenfcb55fd98490
diff --git a/frontend/src/app/applications/files/components/sidebar/files-tree.component.html b/frontend/src/app/applications/files/components/sidebar/files-tree.component.htmlindex dad295b7..3089da18 100644--- a/frontend/src/app/applications/files/components/sidebar/files-tree.component.html+++ b/frontend/src/app/applications/files/components/sidebar/files-tree.component.html@@ -88,7 +88,7 @@}</div>@if (errorMsg && !dstAllowed) {- <div class="text-danger mt-1" l10nTranslate>{{ errorMsg }}</div>+ <div class="text-danger mt-2" l10nTranslate>{{ errorMsg }}</div>}</div></div>diff --git a/frontend/src/app/layout/breadcrumb/breadcrumb.component.html b/frontend/src/app/layout/breadcrumb/breadcrumb.component.htmlindex 214271ca..d5067703 100644--- a/frontend/src/app/layout/breadcrumb/breadcrumb.component.html+++ b/frontend/src/app/layout/breadcrumb/breadcrumb.component.html@@ -2,9 +2,17 @@<div class="breadcrumb-content">@for (item of levels; track $index) {@if (!$first) {- <fa-icon [icon]="icons.faChevronRight" [fixedWidth]="false"></fa-icon>+ <fa-icon+ [class.breadcrumb-mobile-hidden]="$index > 1"+ [icon]="icons.faChevronRight"+ [fixedWidth]="false">+ </fa-icon>}- <li routerLinkActive="active" [routerLinkActiveOptions]="{matrixParams: 'ignored', queryParams: 'ignored', paths: 'exact', fragment: 'ignored'}">+ <li+ [class.breadcrumb-mobile-active]="$index === 1"+ [class.breadcrumb-mobile-hidden]="$index > 1"+ routerLinkActive="active"+ [routerLinkActiveOptions]="{matrixParams: 'ignored', queryParams: 'ignored', paths: 'exact', fragment: 'ignored'}"><a [routerLink]="item.link">@if ($first && breadcrumbIcon) {<fa-icon [icon]="breadcrumbIcon"></fa-icon>diff --git a/frontend/src/app/layout/navbar/navbar.component.html b/frontend/src/app/layout/navbar/navbar.component.htmlindex 21846e06..3a46fb59 100644--- a/frontend/src/app/layout/navbar/navbar.component.html+++ b/frontend/src/app/layout/navbar/navbar.component.html@@ -8,19 +8,13 @@</a>}@if (leftSideBarIsOpen) {- <a (click)="navigateTo('back')" class="d-none d-sm-flex navbar-button navbar-history-button navbar-history-button-left" role="button">+ <a (click)="navigateTo('back')" class="d-none d-md-flex navbar-button navbar-history-button navbar-history-button-left" role="button"><fa-icon [icon]="icons.faAngleLeft"></fa-icon></a>- <a (click)="navigateTo('next')" class="d-none d-sm-flex navbar-button navbar-history-button navbar-history-button-right" role="button">+ <a (click)="navigateTo('next')" class="d-none d-md-flex navbar-button navbar-history-button navbar-history-button-right" role="button"><fa-icon [icon]="icons.faAngleRight"></fa-icon></a>}- <a (click)="navigateTo('back')" class="d-sm-none navbar-button navbar-history-button navbar-history-button-left" role="button">- <fa-icon [icon]="icons.faAngleLeft"></fa-icon>- </a>- <a (click)="navigateTo('next')" class="d-sm-none navbar-button navbar-history-button navbar-history-button-right" role="button">- <fa-icon [icon]="icons.faAngleRight"></fa-icon>- </a><div class="navbar-breadcrumb"><app-breadcrumb></app-breadcrumb></div>diff --git a/frontend/src/styles/components/_header.scss b/frontend/src/styles/components/_header.scssindex 7b177e56..8f1b4f52 100644--- a/frontend/src/styles/components/_header.scss+++ b/frontend/src/styles/components/_header.scss@@ -95,7 +95,7 @@.navbar-history-button-left {margin-left: -.5px;- @include media-breakpoint-up(sm) {+ @include media-breakpoint-up(md) {border-left: .5px solid mix($sidebar-light-icons-menu-hover-bg, $primary, 50%);}}@@ -110,9 +110,6 @@min-width: 0;max-width: none;overflow: hidden;- @include media-breakpoint-down(sm) {- display: none;- }}.navbar-right-side {@@ -210,6 +207,16 @@@include text-truncate-utility;@include no-select-pointer-utility;+ @include media-breakpoint-down(sm) {+ .breadcrumb-mobile-active > a {+ color: $gray-lightest !important;+ }++ .breadcrumb-mobile-hidden {+ display: none;+ }+ }+> li {&:not(:first-child) {@include text-truncate-utility;