style(quick-pane): use standard titlebar drag

This commit is contained in:
2026-08-28 14:43:43 +02:00
parent 9345b67c9f
commit d448152e7f
4 changed files with 32 additions and 38 deletions
+5 -2
View File
@@ -278,7 +278,7 @@ test("Quick Pane uses native dimensions and request-first compact layout", async
assert.match(source, /new ResizeObserver\(resizeToContent\)/);
assert.match(source, /invoke\("resize_quick_pane", \{ height \}\)/);
assert.doesNotMatch(source, /onCloseRequested/);
assert.match(source, /className="quick-pane-drag-region"/);
assert.match(source, /className="quick-pane-titlebar"/);
assert.match(source, /startDragging\(\)/);
assert.match(source, /className="quick-pane-request"/);
assert.match(source, /className=\{`quick-pane-exchange/);
@@ -322,7 +322,10 @@ test("Quick Pane uses native dimensions and request-first compact layout", async
stylesheet,
/\.quick-pane-composer[\s\S]*?height: 120px[\s\S]*?min-height: 110px[\s\S]*?max-height: 130px/,
);
assert.match(stylesheet, /\.quick-pane-drag-region[\s\S]*?position:\s*absolute[\s\S]*?height:\s*10px[\s\S]*?cursor:\s*grab/);
assert.match(
stylesheet,
/\.quick-pane-titlebar[\s\S]*?height:\s*20px[\s\S]*?border-bottom:[\s\S]*?cursor:\s*grab/,
);
assert.match(
stylesheet,
/\.quick-pane-composer-actions[\s\S]*?position: absolute/,