Skip to content
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

fix: Logo enlarges on return to the home page. #355

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Updated the id attribute to 'navbar-brand-logo'
Signed-off-by: abhishek <abhishek4code@gmail.com>
  • Loading branch information
abbi4code committed Sep 23, 2024
commit a3cf0939717356002a5832a6077e2b72699f2ed6
2 changes: 1 addition & 1 deletion layouts/partials/image-modal.html
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@
var imgTags = document.querySelectorAll("img");
imgTags.forEach(function (img) {
img.onclick = function () {
if(img.id !== "navbar-brand_logo") {
if(img.id !== "navbar-brand-logo") {
openModal(img);
}
};
2 changes: 1 addition & 1 deletion layouts/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
<a class="navbar-brand" href="/">
<span class="navbar-brand__logo navbar-logo">
{{ $svg := resources.Get "icons/logo.svg" }}
<img class="footer-logo" id="navbar-brand_logo" src="{{ $svg.Permalink }}" alt="logo" />
<img class="footer-logo" id="navbar-brand-logo" src="{{ $svg.Permalink }}" alt="logo" />
</span>
<span class="navbar-brand__name"></span
></a>
Loading
Oops, something went wrong.