From 348f86c179b0813c8487291e1cec6af32479b7ab Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 24 Mar 2026 18:28:50 -0700 Subject: [PATCH] fix(rtrips): fit all views on one screen without page scrolling Pin nav bar and tabs at top, make tab content scroll within the remaining viewport height. Uses flex layout with overflow-y: auto on the content area. Applies to list, detail, and AI planner views. Co-Authored-By: Claude Opus 4.6 --- modules/rtrips/components/folk-trips-planner.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/rtrips/components/folk-trips-planner.ts b/modules/rtrips/components/folk-trips-planner.ts index 8c3862b..93d037f 100644 --- a/modules/rtrips/components/folk-trips-planner.ts +++ b/modules/rtrips/components/folk-trips-planner.ts @@ -421,10 +421,12 @@ class FolkTripsPlanner extends HTMLElement { private render() { this.shadow.innerHTML = ` ${this.error ? `
${this.esc(this.error)}
` : ""} +
${this.view === "ai-planner" ? this.renderAiPlanner() : this.view === "list" ? this.renderList() : this.renderDetail()} +
`; this.attachListeners(); if (this.view !== 'ai-planner') this._tour.renderOverlay(); @@ -555,6 +559,7 @@ class FolkTripsPlanner extends HTMLElement { +
${this.trips.length > 0 ? `
${this.trips.map(t => { const st = this.getStatusStyle(t.status || "PLANNING"); @@ -584,6 +589,7 @@ class FolkTripsPlanner extends HTMLElement {

No trips yet

Start planning your next adventure

`} +
`; } @@ -603,7 +609,7 @@ class FolkTripsPlanner extends HTMLElement { `` ).join("")} - ${this.renderTab()} +
${this.renderTab()}
`; }