fix: prevent pre blocks from overflowing viewport on mobile
This commit is contained in:
1 file changed
+6
@@ -49,6 +49,12 @@
|
|||||||
border-radius: 3px;
|
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 */
|
/* Shiki code blocks — match site card background */
|
||||||
.astro-code {
|
.astro-code {
|
||||||
background-color: var(--color-bg-card) !important;
|
background-color: var(--color-bg-card) !important;
|
||||||
|
|||||||
Reference in new issue
Block a user