fix: prevent pre blocks from overflowing viewport on mobile

This commit is contained in:
swaits committed 2026-04-08 17:24:15 -06:00
1 parent 5f0f14d12b
commit b68dd4d0e3
1 file changed
+6
+6
View File
@@ -49,6 +49,12 @@
border-radius: 3px;
}
/* All pre blocks: stay within viewport, scroll content */
pre {
max-width: 100%;
overflow-x: auto;
}
/* Shiki code blocks — match site card background */
.astro-code {
background-color: var(--color-bg-card) !important;