Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Remove sidebar resize tooltip (#1471)

Eve Bouffard5fd5b4ddbf71
diff --git a/plugins/web-ui/src/shell.ts b/plugins/web-ui/src/shell.ts
index 68330cd40..59e2e0b9d 100644
--- a/plugins/web-ui/src/shell.ts
+++ b/plugins/web-ui/src/shell.ts
@@ -503,7 +503,6 @@ export function mountShell(): void {
role="separator"
aria-orientation="vertical"
aria-label="Resize sidebar"
- ${tip("Drag to resize · double-click to reset")}
@pointerdown=${startSidebarResize}
@dblclick=${resetSidebarWidth}
></div>
diff --git a/plugins/web-ui/test/responsive-source.test.ts b/plugins/web-ui/test/responsive-source.test.ts
index 1786ef832..a63a88f4b 100644
--- a/plugins/web-ui/test/responsive-source.test.ts
+++ b/plugins/web-ui/test/responsive-source.test.ts
@@ -65,6 +65,14 @@ test("the sidebar's quick actions share the navrow treatment", () => {
assert.doesNotMatch(css, /split-new-session/);
});
+test("the sidebar resize handle stays accessible without a hover tooltip", () => {
+ assert.match(
+ shell,
+ /class="sidebar-resize-handle"[\s\S]{0,200}aria-label="Resize sidebar"[\s\S]{0,200}@pointerdown=\$\{startSidebarResize\}[\s\S]{0,100}@dblclick=\$\{resetSidebarWidth\}/,
+ );
+ assert.doesNotMatch(shell, /Drag to resize/);
+});
+
test("the quick nav is home, search, browse; create sits under the divider", () => {
assert.match(
shell,