Skip to content

Commit

Permalink
[DURACOM-195] fix issue with logo on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-negretti committed Feb 26, 2024
1 parent abba806 commit bff93a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/themes/dspace/app/header/header.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header id="main-site-header">
<div class="container h-100 d-flex flex-row flex-nowrap justify-content-between gapx-3">
<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">
<!-- Logo and navbar wrapper -->
<div id="header-left"
[attr.role]="(isMobile$ | async) ? 'navigation' : 'presentation'"
Expand All @@ -13,7 +13,7 @@
</nav>
</div>
<!-- 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">
<div id="header-right" class="h-100 d-flex flex-row flex-nowrap justify-content-end align-items-center gapx-1 ml-auto">
<ds-themed-search-navbar></ds-themed-search-navbar>
<div role="menubar" class="h-100 d-flex flex-row flex-nowrap align-items-center gapx-1">
<ds-themed-lang-switch></ds-themed-lang-switch>
Expand Down
11 changes: 10 additions & 1 deletion src/themes/dspace/app/header/header.component.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
:host {
#main-site-header {
height: var(--ds-header-height);
min-height: var(--ds-header-height);

@include media-breakpoint-up(md) {
height: var(--ds-header-height);
}

background-color: var(--ds-header-bg);

&-container {
min-height: var(--ds-header-height);
}
}

img#header-logo {
Expand Down

0 comments on commit bff93a0

Please sign in to comment.