fix: surface refresh control on tablet PWA

This commit is contained in:
Federico Jaramillo Martinez
2026-05-23 22:56:34 +02:00
parent 4517fa06d2
commit c2200da0b2
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
"@jmfederico/pi-web": patch
---
Add a mobile refresh control and action palette commands for refreshing app data or reloading the page.
Add mobile and tablet PWA refresh controls plus action palette commands for refreshing app data or reloading the page.
+4 -1
View File
@@ -485,7 +485,10 @@ export class PiWebApp extends LitElement {
return html`
<header>
<strong>PI WEB</strong>
<div class="header-actions">
${this.isMobileNavigationLayout ? null : this.renderAppRefresh()}
<button title="Show Actions" aria-label="Show Actions" @click=${() => { this.setState({ actionPaletteOpen: true }); }}>Actions</button>
</div>
</header>
<project-list
.projects=${this.state.projects}
@@ -870,7 +873,7 @@ export class PiWebApp extends LitElement {
</button>
</li>
</ol>
<div class="context-actions">${this.renderAppRefresh()}</div>
<div class="context-actions">${this.isMobileNavigationLayout ? this.renderAppRefresh() : null}</div>
</nav>
`;
}
+1
View File
@@ -54,6 +54,7 @@ export const appStyles = css`
.shell { display: grid; grid-template-columns: 340px minmax(420px, 1fr) minmax(360px, 42vw); height: 100%; min-height: 0; }
aside { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--pi-border); overflow: hidden; }
header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-bottom: 1px solid var(--pi-border); }
.header-actions { display: flex; align-items: center; gap: 8px; }
project-list, workspace-list { flex: 0 0 auto; max-height: 26%; overflow: auto; border-bottom: 1px solid var(--pi-border-muted); }
session-list { flex: 1 1 auto; min-height: 0; overflow: auto; }
main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }