diff --git a/client/src/pages/JourneyPublicPage.test.tsx b/client/src/pages/JourneyPublicPage.test.tsx
index 840e27feb..cca598642 100644
--- a/client/src/pages/JourneyPublicPage.test.tsx
+++ b/client/src/pages/JourneyPublicPage.test.tsx
@@ -251,6 +251,21 @@ describe('JourneyPublicPage', () => {
}
});
+ it.each([
+ ['desktop', false],
+ ['mobile', true],
+ ] as const)('FE-PAGE-PUBLICJOURNEY-008b: gives the gallery frame a definite width on %s', async (_screen, isMobile) => {
+ mockIsMobile.value = isMobile;
+ setupSuccess();
+ render();
+ fireEvent.click(await screen.findByRole('button', { name: 'Gallery' }));
+
+ // An auto-width, centered flex item can shrink to the intrinsic width of
+ // its lazy thumbnails before they have loaded.
+ const tile = document.querySelector('button > img[src="/api/public/journey/test-share-token/photos/100/thumbnail"]');
+ expect(tile?.closest('.mx-auto')?.classList.contains('w-full')).toBe(true);
+ });
+
it('FE-PAGE-PUBLICJOURNEY-009: map is always visible in desktop two-column layout', async () => {
setupSuccess();
render();
diff --git a/client/src/pages/JourneyPublicPage.tsx b/client/src/pages/JourneyPublicPage.tsx
index a681cf5c8..b48f1e020 100644
--- a/client/src/pages/JourneyPublicPage.tsx
+++ b/client/src/pages/JourneyPublicPage.tsx
@@ -649,7 +649,7 @@ function JourneyPublicContent() {
{/* Content */}
{desktopTwoColumn ? (
// ── Desktop two-column: scrollable timeline feed + sticky map ──────────
-
+
{/* Left: feed */}
{view === 'timeline' && perms.share_timeline && renderTimeline()}
@@ -709,7 +709,7 @@ function JourneyPublicContent() {
) : (
// ── Single-column layout (mobile + desktop-without-map) ───────────────
-
+
{/* Floating view toggle — visible above the fullscreen map on mobile */}
{isMobile && view === 'timeline' && perms.share_timeline && perms.share_map && availableViews.length > 1 && (