Merge pull request #19877 from dvdksn/fix-codespan-wrap

code rendering fixes
This commit is contained in:
David Karlsson 2024-04-25 15:51:52 +02:00 committed by GitHub
commit 4241f60bed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 3 deletions

View File

@ -20,7 +20,21 @@
overflow-wrap: anywhere;
padding: 0 4px;
table & {
overflow-wrap: nowrap;
overflow-wrap: unset;
}
}
/* Indented code blocks */
:not(.highlight) > pre {
@apply my-4 overflow-x-auto p-3;
font-size: 0.875em;
border: 1px solid;
border-radius: theme("spacing.1");
background: theme("colors.white");
border-color: theme("colors.gray.light.300");
.dark & {
background: theme("colors.gray.dark.200");
border-color: theme("colors.gray.dark.300");
}
}

View File

@ -274,6 +274,7 @@
"lg:grid-cols-3",
"lg:grid-cols-main-lg",
"lg:hidden",
"lg:max-w-[300px]",
"lg:no-underline",
"lg:pb-2",
"lg:scale-100",
@ -286,7 +287,6 @@
"max-h-full",
"max-w-56",
"max-w-[1400px]",
"max-w-[300px]",
"max-w-[840px]",
"max-w-full",
"max-w-none",

View File

@ -25,7 +25,7 @@
$store.showSidebar = false;
"
>
<div class="max-w-[300px] ml-auto p-2">
<div class="w-full max-w-none lg:max-w-[300px] ml-auto p-2">
{{ block "left" . }}
{{ end }}
</div>