mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DSC-1847][DSC-1966] fix navbar ui error
(cherry picked from commit 49b329edb1
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
40e213f926
commit
4a4c01b80b
@@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
::ng-deep {
|
::ng-deep {
|
||||||
.ds-menu-item, .ds-menu-toggler-wrapper {
|
.ds-menu-item, .ds-menu-toggler-wrapper {
|
||||||
white-space: nowrap;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,19 +1,19 @@
|
|||||||
<header id="main-site-header">
|
<header id="main-site-header">
|
||||||
<div class="container h-100 d-flex flex-row flex-wrap align-items-center justify-content-between gapx-3 gapy-2" id="main-site-header-container">
|
<div class="container h-100 d-flex flex-row align-items-center justify-content-between gapx-3 gapy-2" id="main-site-header-container">
|
||||||
<!-- Logo and navbar wrapper -->
|
<!-- Logo and navbar wrapper -->
|
||||||
<div id="header-left"
|
<div id="header-left"
|
||||||
[attr.role]="(isMobile$ | async) ? 'navigation' : 'presentation'"
|
[attr.role]="(isMobile$ | async) ? 'navigation' : 'presentation'"
|
||||||
[attr.aria-label]="(isMobile$ | async) ? ('nav.main.description' | translate) : null"
|
[attr.aria-label]="(isMobile$ | async) ? ('nav.main.description' | translate) : null"
|
||||||
class="h-100 flex-fill d-flex flex-row flex-nowrap justify-content-start align-items-center gapx-3">
|
class="h-100 flex-fill d-flex flex-row flex-nowrap justify-content-start align-items-center gapx-3 flex-grow-1">
|
||||||
<a class="d-block my-2 my-md-0" routerLink="/home" [attr.aria-label]="'home.title' | translate">
|
<a class="d-block my-2 my-md-0" routerLink="/home" [attr.aria-label]="'home.title' | translate">
|
||||||
<img id="header-logo" src="assets/images/dspace-logo.svg" [attr.alt]="'menu.header.image.logo' | translate"/>
|
<img id="header-logo" src="assets/images/dspace-logo.svg" [attr.alt]="'menu.header.image.logo' | translate"/>
|
||||||
</a>
|
</a>
|
||||||
<nav *ngIf="(isMobile$ | async) !== true" class="navbar navbar-expand p-0 align-items-stretch align-self-stretch" id="desktop-navbar" [attr.aria-label]="'nav.main.description' | translate">
|
<nav *ngIf="(isMobile$ | async) !== true" class="navbar navbar-expand p-0 align-items-stretch align-self-stretch flex-grow-1 flex-shrink-1" id="desktop-navbar" [attr.aria-label]="'nav.main.description' | translate">
|
||||||
<ds-navbar></ds-navbar>
|
<ds-navbar></ds-navbar>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<!-- Search bar and other menus -->
|
<!-- Search bar and other menus -->
|
||||||
<div id="header-right" class="h-100 d-flex flex-row flex-nowrap justify-content-end align-items-center gapx-1 ml-auto">
|
<div id="header-right" class="h-100 d-flex flex-row flex-nowrap flex-shrink-0 justify-content-end align-items-center gapx-1 ml-auto">
|
||||||
<ds-search-navbar></ds-search-navbar>
|
<ds-search-navbar></ds-search-navbar>
|
||||||
<div role="menubar" class="h-100 d-flex flex-row flex-nowrap align-items-center gapx-1">
|
<div role="menubar" class="h-100 d-flex flex-row flex-nowrap align-items-center gapx-1">
|
||||||
<ds-lang-switch></ds-lang-switch>
|
<ds-lang-switch></ds-lang-switch>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<ng-container *ngIf="(isMobile$ | async) && (isAuthenticated$ | async)">
|
<ng-container *ngIf="(isMobile$ | async) && (isAuthenticated$ | async)">
|
||||||
<ds-user-menu [inExpandableNavbar]="true"></ds-user-menu>
|
<ds-user-menu [inExpandableNavbar]="true"></ds-user-menu>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<div class="navbar-nav h-100 align-items-md-stretch gapx-3" role="menubar" id="main-site-navigation" [ngClass]="(isMobile$ | async) ? 'navbar-nav-mobile' : 'navbar-nav-desktop'">
|
<div class="navbar-nav flex-shrink-1 h-100 align-items-md-stretch gapx-3" role="menubar" id="main-site-navigation" [ngClass]="(isMobile$ | async) ? 'navbar-nav-mobile' : 'navbar-nav-desktop'">
|
||||||
<ng-container *ngFor="let section of (sections | async)">
|
<ng-container *ngFor="let section of (sections | async)">
|
||||||
<ng-container
|
<ng-container
|
||||||
*ngComponentOutlet="(sectionMap$ | async).get(section.id)?.component; injector: (sectionMap$ | async).get(section.id)?.injector;"></ng-container>
|
*ngComponentOutlet="(sectionMap$ | async).get(section.id)?.component; injector: (sectionMap$ | async).get(section.id)?.injector;"></ng-container>
|
||||||
|
Reference in New Issue
Block a user