Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

fix: remove excess tab action overlay inset (#1037)

Joshua Franceb0fd5d85a29f
diff --git a/plugins/web-ui/src/shell.css b/plugins/web-ui/src/shell.css
index c2fb8b0de..67e40a23d 100644
--- a/plugins/web-ui/src/shell.css
+++ b/plugins/web-ui/src/shell.css
@@ -6999,7 +6999,6 @@ h3.ambient-field-label {
display: flex;
align-items: center;
gap: 2px;
- padding-left: 10px;
border-radius: 5px;
background: color-mix(in srgb, var(--background) 96%, transparent);
opacity: 0;
diff --git a/plugins/web-ui/test/split-tiles-and-titles.test.ts b/plugins/web-ui/test/split-tiles-and-titles.test.ts
index 1f46ac0fd..e25ed4326 100644
--- a/plugins/web-ui/test/split-tiles-and-titles.test.ts
+++ b/plugins/web-ui/test/split-tiles-and-titles.test.ts
@@ -94,6 +94,7 @@ test("tab actions overlay the title instead of reserving title space", () => {
assert.match(actions, /right: 0;/);
assert.match(actions, /background: color-mix\(in srgb, var\(--background\) 96%, transparent\);/);
assert.doesNotMatch(actions, /gradient|blur/);
+ assert.doesNotMatch(actions, /padding(?:-[\w-]+)?\s*:/, "the overlay must hug its action buttons");
assert.match(css, /\.dv-tab \.split-pane-title \{[^}]*position: relative;/);
assert.match(css, /\.dv-tab \.split-pane-title \{[^}]*flex: 1 1 auto;/);
const draw = split.slice(split.indexOf("class PaneTab"), split.indexOf("class StripDrop"));