Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] Preserve settings chevron styling in production

Aswin Asoke8a0619a8936
diff --git a/web/apps/photos/src/components/sidebar/WatchFolder.tsx b/web/apps/photos/src/components/sidebar/WatchFolder.tsx
index 1a493abcfb..6422ea246d 100644
--- a/web/apps/photos/src/components/sidebar/WatchFolder.tsx
+++ b/web/apps/photos/src/components/sidebar/WatchFolder.tsx
@@ -196,6 +196,7 @@ export const WatchFolder: React.FC<NestedSidebarDrawerVisibilityProps> = ({
</span>
<span style={{ display: "flex", padding: "8px" }}>
<ChevronRightIcon
+ className="ente-chevron-right"
sx={{ fontSize: "20px", color: "text.muted" }}
/>
</span>
diff --git a/web/apps/photos/src/components/sidebar/theme.ts b/web/apps/photos/src/components/sidebar/theme.ts
index caca9fb6fd..cfdc03cef7 100644
--- a/web/apps/photos/src/components/sidebar/theme.ts
+++ b/web/apps/photos/src/components/sidebar/theme.ts
@@ -105,8 +105,9 @@ export const sidebarTheme = (theme: Theme): Theme => {
theme.colorSchemes.dark?.palette.stroke.faint,
}),
},
- '& svg[data-testid="ChevronRightIcon"]:not([data-sidebar-subscription] *)':
- { color: "#969696" },
+ "& .ente-chevron-right:not([data-sidebar-subscription] *)": {
+ color: "#969696",
+ },
};
return {
diff --git a/web/packages/base/components/v2/RowCard.tsx b/web/packages/base/components/v2/RowCard.tsx
index 21ac35151e..16b0be0ebc 100644
--- a/web/packages/base/components/v2/RowCard.tsx
+++ b/web/packages/base/components/v2/RowCard.tsx
@@ -16,7 +16,7 @@ export const RowCard: React.FC<RowCardProps> = ({
title,
subtitle,
onClick,
- endIcon = <ChevronRightIcon />,
+ endIcon = <ChevronRightIcon className="ente-chevron-right" />,
}) => (
<Box
component={onClick ? FocusVisibleButton : "div"}