From c8b05427fd0d3e58eec224d66659e6a492c28932 Mon Sep 17 00:00:00 2001 From: spellitwithaph Date: Wed, 27 May 2026 10:19:59 -0400 Subject: [PATCH] fix: tooltip reads 'Toggle Panel' and expand button aligns right - Change title/aria-label on both collapse and expand buttons to 'Toggle Panel' - Right-align the expand-panel-strip so the toggle icon sits on the right edge of the main column when the workspace panel is collapsed --- src/client/src/components/PiWebApp.ts | 2 +- src/client/src/components/WorkspacePanel.ts | 2 +- src/client/src/components/shared.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/src/components/PiWebApp.ts b/src/client/src/components/PiWebApp.ts index fd4a1fa..e6475fd 100644 --- a/src/client/src/components/PiWebApp.ts +++ b/src/client/src/components/PiWebApp.ts @@ -1200,7 +1200,7 @@ export class PiWebApp extends LitElement {
${this.renderContextBar()} - ${state.workspacePanelCollapsed ? html`
` : null} + ${state.workspacePanelCollapsed ? html`
` : null}
diff --git a/src/client/src/components/WorkspacePanel.ts b/src/client/src/components/WorkspacePanel.ts index 11d5e75..290f9d5 100644 --- a/src/client/src/components/WorkspacePanel.ts +++ b/src/client/src/components/WorkspacePanel.ts @@ -71,7 +71,7 @@ export class WorkspacePanel extends LitElement { ${visiblePanels.map((panel) => html` `)} - +
`} ${renderWorkspaceLabel(workspace.label, this.workspaceLabelItems, workspace.path)} diff --git a/src/client/src/components/shared.ts b/src/client/src/components/shared.ts index 118a9b8..ce5f08f 100644 --- a/src/client/src/components/shared.ts +++ b/src/client/src/components/shared.ts @@ -95,7 +95,7 @@ export const appStyles = css` .mobile-navigation-tab, .mobile-navigation-panel { display: none; } .mobile-tabs button.selected { border-color: var(--pi-accent); background: var(--pi-selection-bg); } .tab-badge { display: inline-block; min-width: 14px; margin-left: 4px; border: 1px solid var(--pi-success-border); border-radius: 999px; background: var(--pi-success-surface); color: var(--pi-success); padding: 0 5px; font-size: 11px; line-height: 16px; text-align: center; } - .expand-panel-strip { flex: 0 0 auto; display: flex; align-items: center; padding: 4px 8px; border-bottom: 1px solid var(--pi-border-muted); } + .expand-panel-strip { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; padding: 4px 8px; border-bottom: 1px solid var(--pi-border-muted); } .expand-workspace-panel-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 6px; } .expand-workspace-panel-button .expand-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; } workspace-panel { min-width: 0; min-height: 0; border-left: 1px solid var(--pi-border); overflow: hidden; }