mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
Align inline diff icon size with status icons
This commit is contained in:
parent
41a32bf68a
commit
3e2de7be1e
2 changed files with 8 additions and 0 deletions
|
|
@ -270,6 +270,11 @@
|
|||
cursor: default;
|
||||
}
|
||||
|
||||
.codex-panel__open-turn-diff svg {
|
||||
width: calc(var(--codex-panel-size-icon-xs) - var(--codex-panel-rail-width) / 2);
|
||||
height: calc(var(--codex-panel-size-icon-xs) - var(--codex-panel-rail-width) / 2);
|
||||
}
|
||||
|
||||
.codex-panel__open-turn-diff:hover {
|
||||
background: transparent;
|
||||
color: var(--nav-item-color-hover, var(--text-normal));
|
||||
|
|
|
|||
|
|
@ -228,9 +228,12 @@ describe("chat toolbar CSS", () => {
|
|||
describe("chat message CSS", () => {
|
||||
it("uses hover color instead of a pointer cursor for the inline turn diff action", () => {
|
||||
const openTurnDiff = /\.codex-panel__open-turn-diff \{(?<body>[^}]+)\}/.exec(styles)?.groups?.["body"] ?? "";
|
||||
const openTurnDiffSvg = /\.codex-panel__open-turn-diff svg \{(?<body>[^}]+)\}/.exec(styles)?.groups?.["body"] ?? "";
|
||||
const openTurnDiffHover = /\.codex-panel__open-turn-diff:hover \{(?<body>[^}]+)\}/.exec(styles)?.groups?.["body"] ?? "";
|
||||
|
||||
expect(openTurnDiff).toContain("cursor: default");
|
||||
expect(openTurnDiffSvg).toContain("width: calc(var(--codex-panel-size-icon-xs) - var(--codex-panel-rail-width) / 2)");
|
||||
expect(openTurnDiffSvg).toContain("height: calc(var(--codex-panel-size-icon-xs) - var(--codex-panel-rail-width) / 2)");
|
||||
expect(openTurnDiffHover).toContain("color: var(--nav-item-color-hover, var(--text-normal))");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue