Skip to content

Fix sidebar header truncation and chevron visibility#360

Closed
Copilot wants to merge 4 commits into
masterfrom
copilot/fix-sidebar-header-truncation
Closed

Fix sidebar header truncation and chevron visibility#360
Copilot wants to merge 4 commits into
masterfrom
copilot/fix-sidebar-header-truncation

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 13, 2026

Long device names overflow the sidebar header, hiding the chevron toggle button. The chevron must remain visible at all times when the sidebar is expanded.

Before

Before

After

After

Changes

  • Sidebar.tsx (new) — collapsible sidebar component showing emulator status (device name + connected/disconnected) and a Dashboard nav link. Device name carries a title attribute so the full string is accessible on hover.

  • CSS — truncation fix

    .sidebar-device-info { flex: 1; min-width: 0; overflow: hidden; }
    .sidebar-device-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    min-width: 0 is the key — without it, flex items won't shrink below their content width and text-overflow never fires.

  • CSS — chevron always visible

    .sidebar-toggle { flex-shrink: 0; margin-left: auto; }

    Prevents the toggle button from being squeezed out by expanding text content.

  • App.tsx — wraps existing sections in an app-layout (sidebar + <main>) and imports the new Sidebar component.

  • Dark mode — sidebar colours follow the existing prefers-color-scheme: dark block.

This PR builds on top of the React/TypeScript dashboard rewrite (currently open as PR #337). The Vue.js files (js/index.js, js/vue.global.js) are removed in favour of the Vite + React build.

Copilot AI linked an issue Apr 13, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits April 13, 2026 12:34
Co-authored-by: jvaclavik <858321+jvaclavik@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix sidebar header truncation issue Fix sidebar header truncation and chevron visibility Apr 13, 2026
Copilot AI requested a review from jvaclavik April 13, 2026 12:48
@jvaclavik
Copy link
Copy Markdown

Wrong repo 🤦‍♂️

@jvaclavik jvaclavik closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix sidebar header truncation

3 participants