fix(create): 创作页 - 统一侧边栏主题配色 (#331)
This commit is contained in:
1 parent
5a9dd3f9ec
commit
c76f378811
2 files changed
+13
-2
No files matched your search
@@ -10053,13 +10053,11 @@ html:not(.dark) .creation-model-picker-menu .canvas-model-picker-option > span:f
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
.app-workspace-shell.is-creation-workspace,
|
.app-workspace-shell.is-creation-workspace,
|
||||||
.app-workspace-shell.is-creation-workspace .app-workspace-sidebar,
|
|
||||||
.app-workspace-shell.is-creation-workspace .app-workspace-stage {
|
.app-workspace-shell.is-creation-workspace .app-workspace-stage {
|
||||||
background: var(--workspace-page) !important;
|
background: var(--workspace-page) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
html:not(.dark) .app-workspace-shell.is-creation-workspace,
|
html:not(.dark) .app-workspace-shell.is-creation-workspace,
|
||||||
html:not(.dark) .app-workspace-shell.is-creation-workspace .app-workspace-sidebar,
|
|
||||||
html:not(.dark) .app-workspace-shell.is-creation-workspace .app-workspace-stage {
|
html:not(.dark) .app-workspace-shell.is-creation-workspace .app-workspace-stage {
|
||||||
background: var(--workspace-page) !important;
|
background: var(--workspace-page) !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { describe, expect, test } from "bun:test";
|
||||||
|
import { readFileSync } from "node:fs";
|
||||||
|
import { resolve } from "node:path";
|
||||||
|
|
||||||
|
describe("create page sidebar theme", () => {
|
||||||
|
test("keeps the shared workspace sidebar surface", () => {
|
||||||
|
const styles = readFileSync(resolve(import.meta.dir, "../src/styles/globals.css"), "utf8");
|
||||||
|
|
||||||
|
expect(styles).not.toContain(".app-workspace-shell.is-creation-workspace .app-workspace-sidebar");
|
||||||
|
expect(styles).toContain(".app-workspace-shell.is-creation-workspace .app-workspace-stage");
|
||||||
|
expect(styles).toContain("background: color-mix(in srgb, var(--workspace-sidebar) 96%, var(--foreground) 4%);");
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in new issue
Block a user