mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
Fix toolbar runtime toggle refresh
This commit is contained in:
parent
d80d9789e8
commit
cf7b717517
2 changed files with 12 additions and 1 deletions
|
|
@ -373,7 +373,7 @@
|
|||
stroke: currentcolor;
|
||||
}
|
||||
|
||||
.codex-panel-ui__toolbar-control:focus:not(:hover):not(:focus-visible) {
|
||||
.codex-panel-ui__toolbar-control:not(.is-active):focus:not(:hover):not(:focus-visible) {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
color: var(--icon-color);
|
||||
|
|
|
|||
|
|
@ -16,6 +16,17 @@ describe("panel CSS token scope", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("chat toolbar CSS", () => {
|
||||
it("does not let mouse-focus reset override active toolbar controls", () => {
|
||||
const toolbarMouseFocus =
|
||||
/\.codex-panel-ui__toolbar-control:not\(\.is-active\):focus:not\(:hover\):not\(:focus-visible\) \{(?<body>[^}]+)\}/.exec(styles)
|
||||
?.groups?.["body"] ?? "";
|
||||
|
||||
expect(toolbarMouseFocus).toContain("background: transparent");
|
||||
expect(toolbarMouseFocus).toContain("color: var(--icon-color)");
|
||||
});
|
||||
});
|
||||
|
||||
describe("threads view CSS", () => {
|
||||
it("keeps long row titles clear of trailing actions", () => {
|
||||
const titleLine = /\.codex-panel-threads__row-title-line \{(?<body>[^}]+)\}/.exec(styles)?.groups?.["body"] ?? "";
|
||||
|
|
|
|||
Loading…
Reference in a new issue