Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: remove trip started and dashed line to let people see next location in advance

anandbaburajan04b488e9a4c5
diff --git a/web/apps/photos/src/components/TripTemplate/TimelineBaseLine.tsx b/web/apps/photos/src/components/TripTemplate/TimelineBaseLine.tsx
index 076e226186..d18b5d1d22 100644
--- a/web/apps/photos/src/components/TripTemplate/TimelineBaseLine.tsx
+++ b/web/apps/photos/src/components/TripTemplate/TimelineBaseLine.tsx
@@ -28,20 +28,12 @@ export const TimelineBaseLine = memo<TimelineBaseLineProps>(
const firstLocationCenter = locationPositions[0]?.center || 0;
return (
- <>
- <DashedLine
- sx={{
- top: "-60px",
- height: `${firstLocationCenter + 60}px`,
- }}
- />
- <SolidLine
- sx={{
- top: `${firstLocationCenter}px`,
- height: `${heightToLastDot - firstLocationCenter}px`,
- }}
- />
- </>
+ <SolidLine
+ sx={{
+ top: `${firstLocationCenter}px`,
+ height: `${heightToLastDot - firstLocationCenter}px`,
+ }}
+ />
);
},
);
diff --git a/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx b/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx
index ee8666581d..016f7ef263 100644
--- a/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx
+++ b/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx
@@ -61,7 +61,7 @@ export const TimelineLocation = memo<TimelineLocationProps>(
className="timeline-location"
sx={{
marginBottom:
- index === photoClusters.length - 1 ? "24px" : "192px",
+ index === photoClusters.length - 1 ? "48px" : "96px",
}}
>
<DotBackground />
diff --git a/web/apps/photos/src/components/TripTemplate/TripCover.tsx b/web/apps/photos/src/components/TripTemplate/TripCover.tsx
index 99280ff8b9..fe36255c0d 100644
--- a/web/apps/photos/src/components/TripTemplate/TripCover.tsx
+++ b/web/apps/photos/src/components/TripTemplate/TripCover.tsx
@@ -97,14 +97,17 @@ export const TripCover = memo<TripCoverProps>(
// Styled components
const CoverContainer = styled(Box)({ marginBottom: "48px" });
-const CoverImageContainer = styled(Box)({
+const CoverImageContainer = styled(Box)(({ theme }) => ({
aspectRatio: "16/8",
position: "relative",
marginBottom: "12px",
borderRadius: "24px",
overflow: "hidden",
backgroundColor: "#e0e0e0",
-});
+ [theme.breakpoints.down(1440)]: {
+ aspectRatio: "16/6",
+ },
+}));
const GradientOverlay = styled(Box)({
position: "absolute",
diff --git a/web/apps/photos/src/components/TripTemplate/index.tsx b/web/apps/photos/src/components/TripTemplate/index.tsx
index 0173a13116..e8f0dfb94b 100644
--- a/web/apps/photos/src/components/TripTemplate/index.tsx
+++ b/web/apps/photos/src/components/TripTemplate/index.tsx
@@ -15,7 +15,6 @@ import { TimelineProgressLine } from "./TimelineProgressLine";
import { TopNavButtons } from "./TopNavButtons";
import { TripCover } from "./TripCover";
import { TripMap } from "./TripMap";
-import { TripStartedSection } from "./TripStartedSection";
// Import hooks
import { useDataProcessing } from "./hooks/useDataProcessing";
@@ -103,7 +102,6 @@ export const TripTemplate: React.FC<TripTemplateProps> = ({
const filesCountRef = useRef<number>(0); // Track files count to detect real changes
const previousActiveLocationRef = useRef<number>(-1); // Track previous active location for discrete panning
-
const photoClusters = useMemo(() => {
const clusters = clusterPhotosByProximity(journeyData);
@@ -242,10 +240,6 @@ export const TripTemplate: React.FC<TripTemplateProps> = ({
</LocationsLoadingContainer>
) : (
<>
- <TripStartedSection
- journeyData={journeyData}
- />
-
<TimelineContainer id="timeline-container">
<TimelineBaseLine
locationPositions={
@@ -280,8 +274,6 @@ export const TripTemplate: React.FC<TripTemplateProps> = ({
}
/>
))}
-
- <Box sx={{ mb: 3 }} />
</TimelineContainer>
</>
)}
@@ -346,7 +338,7 @@ const TimelineSidebar = styled(Box)(({ theme }) => ({
left: "16px",
top: "16px",
bottom: "16px",
- width: "min(50%, 1000px)",
+ width: "680px",
overflow: "auto",
boxShadow: theme.shadows[10],
backgroundColor: theme.palette.background.paper,
@@ -364,9 +356,10 @@ const TimelineSidebar = styled(Box)(({ theme }) => ({
},
scrollbarWidth: "thin",
scrollbarColor: `${theme.palette.divider} transparent`,
+ [theme.breakpoints.up(1600)]: { width: "960px" },
}));
-const TimelineContent = styled(Box)({
+const TimelineContent = styled(Box)({
padding: "32px",
height: "100%",
display: "flex",