Skip to content

fix(docs): Resolve logo overlap on tablet view #5853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docs/layouts/partials/docs/top-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@
{{ .Content | safeHTML }}
{{ end }}
</div>
<div class="big">
<div class="big header-logo">
Copy link
Owner

@mudler mudler Jul 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be fair I would avoid to bring in the template header override just for a single class definition - can we maybe define it in the top-header.html file, or inline as it's a one-off?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Makes sense to avoid the full partial override for this.

I've updated the PR to use a <style> block directly in top-header.html.

Let me know if that works!

{{ with resources.Get "images/logos/logo.svg" }}
{{ .Content | safeHTML }}
{{ .Content | safeHTML }}
{{ end }}
<style>
.header-logo svg {
width: 32px;
height: 32px;
}
</style>
</div>
</a>
<button id="close-sidebar" class="btn btn-icon btn-soft">
Expand Down Expand Up @@ -44,7 +50,7 @@
{{ end }}
{{ end -}}
</div>
<div class="d-none d-md-flex d-flex align-items-center m-1">
<div class="d-none d-lg-flex d-flex align-items-center m-1">
<h5>Star us on GitHub !&nbsp;</h5>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<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>
Expand Down
Loading