Skip to content

Commit 735da6f

Browse files
authored
feat: stable responsive images (#618)
* feat: stable responsive images * fix: formatting
1 parent a38d402 commit 735da6f

File tree

3 files changed

+105
-42
lines changed

3 files changed

+105
-42
lines changed

astro.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,10 @@ export default defineConfig({
440440
build: {
441441
inlineStylesheets: "always",
442442
},
443+
image: {
444+
responsiveStyles: true,
445+
layout: "constrained",
446+
},
443447
markdown: {
444448
remarkPlugins: [
445449
[

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@astrojs/svelte": "^7.0.13",
1818
"@fontsource/jetbrains-mono": "^5.2.5",
1919
"@fontsource/poppins": "^5.2.6",
20-
"astro": "^5.7.11",
20+
"astro": "^5.10.2",
2121
"astro-d2": "^0.7.0",
2222
"sharp": "^0.34.1",
2323
"starlight-contributor-list": "^0.3.0",

pnpm-lock.yaml

Lines changed: 100 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)