Skip to content

Commit

Permalink
🛠️ Fix image zoom in linkcard
Browse files Browse the repository at this point in the history
Fix image zoom in linkcard
  • Loading branch information
EveSunMaple authored Sep 18, 2024
2 parents ac16a9f + b0710d6 commit 993227b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ const { title, image, includeSidebar = true } = Astro.props;
}

import mediumZoom from "medium-zoom/dist/pure";
mediumZoom(".main-card img", { margin: 24, background: "#00000080" });
mediumZoom(".main-card img:not(.link-card img)", { margin: 24, background: "#00000080" });

document.addEventListener("swup:page:view", () => {
mediumZoom(".main-card img", { margin: 24, background: "#00000080" });
mediumZoom(".main-card img:not(.link-card img)", { margin: 24, background: "#00000080" });
});

document.addEventListener("DOMContentLoaded", addCopyButton);
Expand Down

0 comments on commit 993227b

Please sign in to comment.