Skip to content

Commit 2e76863

Browse files
committed
Fix SVG compression.
1 parent 6466efa commit 2e76863

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ export default defineConfig({
8989
metaTags(),
9090
pagefind(),
9191
deleteUnusedImages(),
92-
compress(),
92+
(await import("astro-compress")).default({
93+
SVG: false,
94+
}),
9395
],
9496
output: "static",
9597
build: {

src/components/SocialMediaSponsorCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let height = width / aspectRatio;
2424
const maxHeight = 220;
2525
if (height > maxHeight) {
2626
height = maxHeight;
27-
width = height * aspectRatio; // adjust width to maintain aspect ratio
27+
width = height * aspectRatio ;
2828
}
2929
3030
const x = 650 - width / 2;

0 commit comments

Comments
 (0)