Compare commits

..

1 Commits

Author SHA1 Message Date
28c29f0d30 Fix code overflow
All checks were successful
Build and Deploy Zola Website / build_and_deploy (push) Successful in 13s
Build Zola Website / build (pull_request) Successful in 20s
2024-12-14 23:09:30 +01:00

View File

@ -1,19 +1,23 @@
//.language-yaml { //.language-yaml {
pre { pre {
display: block; display: flex; /* Enables flexbox */
align-items: center; /* Vertically centers the content */
justify-content: space-between; /* Allows space for the copy button on the right */
max-width: 100%; max-width: 100%;
overflow-x: auto; overflow-x: auto;
overflow-y: auto; overflow-y: auto;
min-height: 3rem; /* Maintains a consistent height */
padding: 0.5rem; padding: 0.5rem;
margin: 0.5rem 0; margin: 0.5rem 0;
border-radius: 5px; border-radius: 5px;
white-space: pre; white-space: pre; /* Keeps code formatting */
box-sizing: border-box; /* Includes padding in width calculation */
} }
code { code {
display: inline-block; display: inline-block;
word-break: break-word; word-break: break-word; /* Prevents long words from breaking the layout */
white-space: pre-wrap; white-space: pre-wrap; /* Allows wrapping of long strings */
} }
.project-wrapper { .project-wrapper {