mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user