Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add dashed connector line between feed items

Anand Baburajan8e8c4449b7d9
diff --git a/web/packages/gallery/components/viewer/FeedSidebar.tsx b/web/packages/gallery/components/viewer/FeedSidebar.tsx
index 6c4f8d03af..fbd21f6690 100644
--- a/web/packages/gallery/components/viewer/FeedSidebar.tsx
+++ b/web/packages/gallery/components/viewer/FeedSidebar.tsx
@@ -1092,12 +1092,28 @@ const ContentContainer = styled(Box)(({ theme }) => ({
}));
// Feed Item Components
-const FeedItemContainer = styled(Box)(() => ({
+const FeedItemContainer = styled(Box)(({ theme }) => ({
display: "flex",
alignItems: "flex-start",
gap: 12,
marginBottom: 40,
cursor: "pointer",
+ position: "relative",
+ "&:not(:last-child)::before": {
+ content: '""',
+ position: "absolute",
+ left: 16,
+ top: 33,
+ bottom: -40,
+ width: 2,
+ backgroundImage:
+ "repeating-linear-gradient(to bottom, #E6E6E6 0px, #E6E6E6 8px, transparent 8px, transparent 16px)",
+ borderRadius: 1,
+ ...theme.applyStyles("dark", {
+ backgroundImage:
+ "repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 0px, rgba(255, 255, 255, 0.18) 8px, transparent 8px, transparent 16px)",
+ }),
+ },
"&:last-child": {
marginBottom: 0,
},
@@ -1112,6 +1128,8 @@ const IconContainer = styled(Box)(({ theme }) => ({
flexShrink: 0,
backgroundColor: "#fff",
borderRadius: "50%",
+ position: "relative",
+ zIndex: 1,
...theme.applyStyles("dark", {
backgroundColor: "#2a2a2a",
}),