fix(mobile): split the new phone sheets and cards below the lint limits, follow the tests to the new rows

This commit is contained in:
Maurice
2026-10-22 21:43:15 +02:00
parent 49afee161d
commit 8e420cc1f1
14 changed files with 644 additions and 514 deletions
@@ -511,7 +511,7 @@ export function useJourneyDetail({ journeyId, embedded = false }: JourneyDetailO
dayImport, dayImportDates,
} = useJourneyDetailLayers({
journey: current, loaded: journeyLoaded, canEditEntries, loadJourney, dawarich, dawarichByDate, dawarichTrail,
tripDates, sidebarMapItems, photoCount: mapPhotos.length, showTripTracks, allLayers: isMobile,
tripDates, sidebarMapItems, photoCount: mapPhotos.length, showTripTracks,
})
/** Studio's margin to the window on all four sides — see `.st-root` in studio.css. */
@@ -5,6 +5,7 @@ import { useJourneyMapLayers } from '../../components/Journey/useJourneyMapLayer
import { useJourneyRecordingPrep } from '../../components/Journey/useJourneyRecordingPrep';
import type { useDawarichJournalTrail } from '../../hooks/useDawarichJournalTrail';
import type { useDawarichSuggestions } from '../../hooks/useDawarichSuggestions';
import { useIsMobile } from '../../hooks/useIsMobile';
import { useAddonStore } from '../../store/addonStore';
import type { JourneyDetail } from '../../store/journeyStore';
import { useJourneyDetailDayImport } from './useJourneyDetailDayImport';
@@ -30,7 +31,6 @@ export function useJourneyDetailLayers({
sidebarMapItems,
photoCount,
showTripTracks,
allLayers = false,
}: {
journey: JourneyDetail | null;
/** Whether `journey` is the one the route names yet: the store keeps the last one while the next loads. */
@@ -44,8 +44,6 @@ export function useJourneyDetailLayers({
sidebarMapItems: ReadonlyArray<{ id: string; entry_date: string; dayColor: string }>;
photoCount: number;
showTripTracks: boolean;
/** The phone: every map layer on, as it offers no switches (see useJourneyMapLayers). */
allLayers?: boolean;
}) {
// The editor's own status, the owner's switch, and where each day of the trips stands.
const isAddonEnabled = useAddonStore((s) => s.isEnabled);
@@ -114,7 +112,7 @@ export function useJourneyDetailLayers({
recordedRead,
colorOfDay,
dateOfEntry,
allLayers,
allLayers: useIsMobile(),
});
// The drafts a day's take-over wrote reach the timeline, and its stays leave the pending list.