diff --git a/.changeset/clickable-mobile-breadcrumbs.md b/.changeset/clickable-mobile-breadcrumbs.md new file mode 100644 index 0000000..dee1cac --- /dev/null +++ b/.changeset/clickable-mobile-breadcrumbs.md @@ -0,0 +1,5 @@ +--- +"@jmfederico/pi-web": patch +--- + +Make the mobile location breadcrumbs clickable so they open project, workspace, or session selection directly. diff --git a/src/client/src/components/PiWebApp.ts b/src/client/src/components/PiWebApp.ts index 1161af4..f4fcc75 100644 --- a/src/client/src/components/PiWebApp.ts +++ b/src/client/src/components/PiWebApp.ts @@ -559,6 +559,12 @@ export class PiWebApp extends LitElement { if (this.isMobileNavigationLayout) this.expandedMobileNavigationSection = section; } + private openNavigationSection(section: NavigationSection): void { + if (!this.isMobileNavigationLayout) return; + this.expandNavigationSection(section); + this.selectMainView("navigation"); + } + private visibleWorkspacePanels(): QualifiedWorkspacePanelContribution[] { const workspace = this.state.selectedWorkspace; if (workspace === undefined) return []; @@ -845,17 +851,23 @@ export class PiWebApp extends LitElement {