Skip to content

Commit 5765598

Browse files
committed
changed layout
1 parent 4d578bd commit 5765598

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

_layouts/default.html

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,21 @@
3838
}
3939

4040
pre {
41-
background-color: var(--code-bg);
42-
padding: 1em;
43-
border-radius: 5px;
44-
overflow-x: auto;
41+
background-color: var(--code-bg);
42+
padding: 1em;
43+
border-radius: 5px;
44+
white-space: pre-wrap; /* wrap long lines */
45+
word-break: break-word; /* break long words if needed */
46+
overflow-x: auto; /* fallback scroll for very long words */
47+
max-width: 100%; /* allow full container width */
4548
}
4649

4750
code {
48-
background-color: var(--code-bg);
49-
padding: 0.2em 0.4em;
50-
border-radius: 3px;
51-
font-family: monospace;
51+
background-color: var(--code-bg);
52+
padding: 0.2em 0.4em;
53+
border-radius: 3px;
54+
font-family: monospace;
55+
word-break: break-word; /* fix inline code breaking layout */
5256
}
5357

5458
blockquote {

0 commit comments

Comments
 (0)