fix(editor): anchor wrapped line numbers via inline style

This commit is contained in:
Abeautifulsnow authored and GitHub committed 2026-09-03 18:50:05 +08:00
1 parent 767cc809a1
commit dd11e42748
4 files changed
+29 -9

No files matched your search

+1 -2
View File
@@ -192,7 +192,7 @@ describe("SQL completion theme", () => {
});
describe("editor gutters", () => {
it("anchors line numbers to the first visual row of wrapped lines", () => {
it("keeps single line numbers vertically centered in the base rule", () => {
const rules = buildEditorFontThemeRules();
expect(rules[".cm-lineNumbers .cm-gutterElement"]).toMatchObject({
@@ -200,6 +200,5 @@ describe("editor gutters", () => {
display: "flex",
justifyContent: "flex-end",
});
expect(rules[".cm-lineNumbers .cm-gutterElement.cm-db-wrapped-line-number"]).toMatchObject({ alignItems: "flex-start" });
});
});