Skip to content

Commit fb32bea

Browse files
authored
Merge pull request #1593 from gethinode/develop
fix: improve layout of bitmap logos in navbar
2 parents 4ae5e1a + cff9ed1 commit fb32bea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

layouts/_partials/assets/navbar.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"title" $title
9999
"image-height" $height
100100
"mode" $mode
101-
"class" (printf "h-100 %s" $class)
101+
"class" $class
102102
) }}
103103
{{ end }}
104104
{{ end }}
@@ -147,8 +147,8 @@
147147
{{ end }}
148148

149149
{{/* Insert the brand logo or name */}}
150-
<div class="width-100 width-{{ $args.breakpoint }}-auto {{ if not $logo }}my-auto {{ end }} {{ if eq $align "center" }}text-center{{ end }}">
151-
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}">
150+
<div class="width-100 d-flex align-items-center width-{{ $args.breakpoint }}-auto">
151+
<a class="navbar-brand{{ if eq $align "center" }} mx-auto{{ end }}" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}">
152152
{{- with $logo -}}{{ . }}{{- else -}}<div class="p-0 navbar-title-{{ $align }} fw-bold h-100">{{ $title }}</div>{{- end -}}
153153
</a>
154154
</div>

0 commit comments

Comments
 (0)