Skip to content

Commit ea696cd

Browse files
committed
fix: x-scroll
1 parent e4df09b commit ea696cd

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

themes/cooklang-tw/assets/css/main.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
/* Ensure code blocks don't overflow */
1212
pre {
1313
@apply overflow-x-auto;
14+
max-width: 100%;
15+
}
16+
17+
/* Fix code blocks in prose content to have proper scrolling */
18+
.prose pre {
19+
max-width: 100%;
20+
@apply overflow-x-auto;
21+
}
22+
23+
/* Ensure inline code doesn't break layout */
24+
.prose code {
25+
word-break: break-word;
1426
}
1527

1628
/* Fix for mobile Safari background */

0 commit comments

Comments
 (0)