Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use stroke color

Manav Rathie2b43fa67738
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx
index 8753b8ab53..ac789512f4 100644
--- a/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx
@@ -447,18 +447,7 @@ const InfoItem: React.FC<React.PropsWithChildren<InfoItemProps>> = ({
gap: "12px",
}}
>
- <Box
- sx={{
- width: "48px",
- aspectRatio: 1,
- display: "flex",
- justifyContent: "center",
- alignItems: "center",
- color: "text.faint",
- }}
- >
- {icon}
- </Box>
+ <InfoItemIconContainer>{icon}</InfoItemIconContainer>
<Box sx={{ flex: 1, mt: "4px" }}>
{children ? (
children
@@ -483,6 +472,17 @@ const InfoItem: React.FC<React.PropsWithChildren<InfoItemProps>> = ({
</Box>
);
+const InfoItemIconContainer = styled("div")(
+ ({ theme }) => `
+ width: 48px;
+ aspect-ratio: 1;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ color: ${theme.colors.stroke.muted}
+`,
+);
+
type EditButtonProps = ButtonishProps & {
/**
* If true, then an activity indicator is shown in place of the edit icon.