From 60cf5d1019bd1914cfd15aff83584507a2d878f7 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Thu, 19 Mar 2026 21:11:11 +0000 Subject: [PATCH] feat(ui): Hide text-heavy elements for small mobile --- src/client/components/ActivityTimeline.tsx | 65 +++++++++++-------- src/client/components/PlayData.tsx | 6 +- .../components/ScrobbleActionResult.tsx | 4 +- src/client/components/TransformSteps.tsx | 4 +- 4 files changed, 44 insertions(+), 35 deletions(-) diff --git a/src/client/components/ActivityTimeline.tsx b/src/client/components/ActivityTimeline.tsx index ff17bf05..258118bc 100644 --- a/src/client/components/ActivityTimeline.tsx +++ b/src/client/components/ActivityTimeline.tsx @@ -1,5 +1,5 @@ import { ComponentProps, useState } from "react" -import { Accordion, Timeline, Icon, Span, Stack, Heading, Card, Box } from '@chakra-ui/react'; +import { Accordion, Timeline, Icon, Span, Stack, Heading, Card, Box, Tabs } from '@chakra-ui/react'; import { ErrorLike, JsonPlayObject, PlayActivity } from "../../core/Atomic"; import { PlayData } from "./PlayData"; import { ErrorAlert } from "./ErrorAlert"; @@ -63,28 +63,26 @@ export const ActivityTimeline = (props: ActivityDetailProps) => { - Discovered new activity from + Discovered new (Play) activity from {capitalize(source)} at {shortTodayAwareFormat(dayjs(playDate))} - - - - - - - - - - - - - - - - Created new Play - - + + + + + Play + Source Data + + + + + + + + + + {steps.length > 0 ? ( @@ -99,9 +97,13 @@ export const ActivityTimeline = (props: ActivityDetailProps) => { - Transforms + Transformed Play using configured Rules - + + + + + ) : null} @@ -117,12 +119,15 @@ export const ActivityTimeline = (props: ActivityDetailProps) => { - Duplicate Match Check + Found {match.match ? a duplicate Scrobble : 'no duplicate Scrobbles'} - {match.reason} - - - + + + + + + + ) : null} @@ -140,7 +145,11 @@ export const ActivityTimeline = (props: ActivityDetailProps) => { Attmpted to Scrobble - + + + + + ) : null} diff --git a/src/client/components/PlayData.tsx b/src/client/components/PlayData.tsx index 6346a4aa..6b6d765c 100644 --- a/src/client/components/PlayData.tsx +++ b/src/client/components/PlayData.tsx @@ -61,15 +61,15 @@ export const PlayData = (props?: PlayInfoProps) => { if (!comparable) { return ( - {code} + {code} {codeMode ? : } ); } return ( - {code} - + {code} + Initial Final diff --git a/src/client/components/ScrobbleActionResult.tsx b/src/client/components/ScrobbleActionResult.tsx index f5b2f833..51889312 100644 --- a/src/client/components/ScrobbleActionResult.tsx +++ b/src/client/components/ScrobbleActionResult.tsx @@ -47,7 +47,7 @@ export const ScrobbleActionResult = (props: ScrobbleActionResultProps) => { Sent Scrobble Payload{scrobbler !== undefined ? to {capitalize(scrobbler)} : null} - + @@ -66,7 +66,7 @@ export const ScrobbleActionResult = (props: ScrobbleActionResultProps) => { Received Response{scrobbler !== undefined ? from {capitalize(scrobbler)} : null}{warnings.length > 0 ? with warnings : null} - + {warnings.length > 0 ? ( diff --git a/src/client/components/TransformSteps.tsx b/src/client/components/TransformSteps.tsx index a663083b..c913e2aa 100644 --- a/src/client/components/TransformSteps.tsx +++ b/src/client/components/TransformSteps.tsx @@ -50,7 +50,7 @@ export const TransformSteps = (props: LifeycleStepsTimelineProps) => { {x.name} with {x.source} - + Diff {err !== undefined ? : null} @@ -70,7 +70,7 @@ export const TransformSteps = (props: LifeycleStepsTimelineProps) => { })} {currentPlay !== false ? ( - + -- 2.51.2