fix: whitespace breaks for code spans in tables

A regression caused by a bad rebase in #18803

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-05-06 11:33:38 +02:00
parent 9a0729503b
commit 4e168bc9b2
2 changed files with 24 additions and 33 deletions

View File

@ -20,9 +20,11 @@
font-weight: 400;
overflow-wrap: anywhere;
padding: 0 4px;
table & {
overflow-wrap: unset;
}
}
table code {
overflow-wrap: unset;
white-space: nowrap;
}
/* Indented code blocks */
@ -47,33 +49,28 @@
vertical-align: top;
padding: 0;
margin: 0;
white-space: nowrap;
font-weight: 400;
padding: 0 4px;
}
.highlight {
@apply my-4 overflow-x-auto p-3;
/* LineTableTD */
.lntd {
vertical-align: top;
padding: 0;
margin: 0;
border: 0;
}
/* LineTable */
.lntable {
display: table;
width: 100%;
border-spacing: 0;
padding: 0;
margin: 0;
border: 0;
/* LineNumberColumnHighlight */
.lntd:first-child .hl {
display: block;
}
/* LineTableTD */
.lntd {
vertical-align: top;
padding: 0;
margin: 0;
border: 0;
}
/* LineTable */
.lntable {
display: table;
width: 100%;
border-spacing: 0;
padding: 0;
margin: 0;
border: 0;
/* LineNumberColumnHighlight */
.lntd:first-child .hl {
display: block;
}
}
}

View File

@ -21,6 +21,7 @@
"Bake",
"Bash",
"Before",
"BitBucket-Pipelines",
"Buildkite",
"CLI",
"CentOS-7-and-RHEL-7",
@ -288,16 +289,13 @@
"lg:pb-2",
"lg:scale-100",
"lg:text-base",
"lg:w-75ch",
"lg:w-[1200px]",
"lg:w-[600px]",
"lg:w-[840px]",
"link",
"lntable",
"lntd",
"m-2",
"m-auto",
"max-h-[77vh]",
"max-h-[80vh]",
"max-h-full",
"max-w-56",
@ -319,7 +317,6 @@
"md:hidden",
"md:max-w-[66%]",
"md:scale-100",
"md:w-full",
"min-h-0",
"min-h-screen",
"min-w-0",
@ -343,7 +340,6 @@
"outline",
"outline-2",
"outline-gray-light",
"overflow-auto",
"overflow-clip",
"overflow-hidden",
"overflow-x-hidden",
@ -441,14 +437,12 @@
"w-8",
"w-[1200px]",
"w-[32px]",
"w-[840px]",
"w-full",
"w-lvw",
"warning",
"xl:grid-cols-3",
"xl:grid-cols-4",
"xl:grid-cols-main-xl",
"xl:w-100ch",
"xl:w-[1200px]",
"xl:w-[800px]",
"youtube-video",