Skip to content

Fix: panel version badge clipped off Overview hero title - #1

Open
ShiyunXu wants to merge 1 commit into
iPmartNetwork:masterfrom
ShiyunXu:fix/upstream-version-clip
Open

Fix: panel version badge clipped off Overview hero title#1
ShiyunXu wants to merge 1 commit into
iPmartNetwork:masterfrom
ShiyunXu:fix/upstream-version-clip

Conversation

@ShiyunXu

Copy link
Copy Markdown

The dashboard was not showing the installed panel version on the Overview page.

Root cause: the hero <h1> in web/src/pages/Overview.tsx combined whitespace-nowrap with an ancestor overflow-hidden container. On narrower viewports or with longer translated titles, this silently clipped the appended v{panelVersion} text so it never appeared, even though:

  • GET /api/version is already public (no auth) in internal/panel/api/server.go.
  • The frontend already has a working useVersion() hook (web/src/api/hooks.ts) and PANEL_VERSION fallback wired into Overview.tsx/AppSidebar.tsx.

Fix: removed whitespace-nowrap from the <h1> className so the title wraps instead of truncating the version suffix.

Verified with tsc --noEmit and vite build on this branch.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

The hero h1 combined whitespace-nowrap with an ancestor overflow-hidden
container, so on narrower viewports or longer translated titles the
appended version text was silently clipped and never visible, even
though the backend GET /api/version route is public and the frontend
useVersion/PANEL_VERSION code fetches and renders it correctly.
Removing whitespace-nowrap lets the title wrap instead of truncating
the version suffix.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants