Skip to content

Commit a1d061c

Browse files
authored
fix(docs): Resolve logo overlap on tablet view (#5853)
* fix(docs): Resolve logo overlap on tablet view Signed-off-by: Dedy F. Setyawan <[email protected]> * fix(docs): Adjust header logo size Signed-off-by: Dedy F. Setyawan <[email protected]> * refactor(docs): Rework header logo sizing implementation Signed-off-by: Dedy F. Setyawan <[email protected]> --------- Signed-off-by: Dedy F. Setyawan <[email protected]>
1 parent 851c670 commit a1d061c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/layouts/partials/docs/top-header.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88
{{ .Content | safeHTML }}
99
{{ end }}
1010
</div>
11-
<div class="big">
11+
<div class="big header-logo">
1212
{{ with resources.Get "images/logos/logo.svg" }}
13-
{{ .Content | safeHTML }}
13+
{{ .Content | safeHTML }}
1414
{{ end }}
15+
<style>
16+
.header-logo svg {
17+
width: 32px;
18+
height: 32px;
19+
}
20+
</style>
1521
</div>
1622
</a>
1723
<button id="close-sidebar" class="btn btn-icon btn-soft">
@@ -44,7 +50,7 @@
4450
{{ end }}
4551
{{ end -}}
4652
</div>
47-
<div class="d-none d-md-flex d-flex align-items-center m-1">
53+
<div class="d-none d-lg-flex d-flex align-items-center m-1">
4854
<h5>Star us on GitHub !&nbsp;</h5>
4955
<script async defer src="https://buttons.github.io/buttons.js"></script>
5056
<a class="github-button" href="https://github.com/mudler/LocalAI" data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star mudler/LocalAI on GitHub">Star</a>

0 commit comments

Comments
 (0)