The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(shared): keep the header's decoration from widening the page
Wenyin Weief259e7d7d4f
diff --git a/client/src/pages/SharedTripPage.test.tsx b/client/src/pages/SharedTripPage.test.tsxindex 68efc409a..3ba5cc2f5 100644--- a/client/src/pages/SharedTripPage.test.tsx+++ b/client/src/pages/SharedTripPage.test.tsx@@ -1450,4 +1450,19 @@ describe('SharedTripPage', () => {expect(document.querySelector('a[href^="javascript:"]')).toBeNull();});});++ // ── #2345: the header has to clip the decoration it bleeds ──────────────++ describe('FE-PAGE-SHARED-040: the header clips the circles it bleeds (#2345)', () => {+ it('does not let them widen the page', async () => {+ await open('overflow-token', payload({}));++ // Both circles sit outside the header on purpose, so the page only stays+ // as wide as the viewport if the header itself is the clip. The header is+ // the first gradient panel on the page and carries the trip title.+ const header = document.querySelector<HTMLElement>('div[style*="linear-gradient(135deg"]');+ expect(header?.textContent).toContain('Shared Paris Trip');+ expect(header?.style.overflow).toBe('hidden');+ });+ });});diff --git a/client/src/pages/SharedTripPage.tsx b/client/src/pages/SharedTripPage.tsxindex c9dadaf61..274db9aab 100644--- a/client/src/pages/SharedTripPage.tsx+++ b/client/src/pages/SharedTripPage.tsx@@ -205,6 +205,12 @@ export default function SharedTripPage() {padding: '32px 20px 28px',textAlign: 'center',position: 'relative',+ // The two circles below bleed past this box on purpose (-40 to -60 on+ // each axis) and nothing else on the page clips them, so without this+ // the header widened the document by 60px: 390 + 60 = the 450px+ // scrollWidth a 390px phone reported, and the whole page could be+ // dragged sideways (#2345).+ overflow: 'hidden',}}>{/* Cover image background */}