fix: contain CM6 code line scrolling

This commit is contained in:
Peter Li 2026-07-17 10:56:36 +08:00
parent 13b81bf849
commit 1e9cf02e4e
3 changed files with 12 additions and 6 deletions

View file

@ -41,6 +41,8 @@ body {
white-space: pre;
word-break: normal;
overflow-wrap: normal;
width: max-content;
min-width: 100%;
width: auto;
min-width: 0;
overflow-x: auto;
overflow-y: hidden;
}

View file

@ -237,8 +237,10 @@ test("keeps CM6 fenced code lines on one horizontal line", () => {
["white-space", "pre"],
["word-break", "normal"],
["overflow-wrap", "normal"],
["width", "max-content"],
["min-width", "100%"],
["width", "auto"],
["min-width", "0"],
["overflow-x", "auto"],
["overflow-y", "hidden"],
],
);
});

View file

@ -297,8 +297,10 @@ body {
white-space: pre;
word-break: normal;
overflow-wrap: normal;
width: max-content;
min-width: 100%;
width: auto;
min-width: 0;
overflow-x: auto;
overflow-y: hidden;
}
body {