Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update delete option hover colors in comments context menu

Anand Baburajanc6b62bcef8bf
diff --git a/web/packages/gallery/components/viewer/CommentsSidebar.tsx b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
index 1cb5609dd5..ce475904f7 100644
--- a/web/packages/gallery/components/viewer/CommentsSidebar.tsx
+++ b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
@@ -1323,11 +1323,18 @@ export const CommentsSidebar: React.FC<CommentsSidebarProps> = ({
</StyledMenuItem>
<StyledMenuItem
onClick={() => handleContextMenuAction("delete")}
- sx={{
+ sx={(theme) => ({
"&:hover": {
- backgroundColor: "rgba(228, 7, 7, 0.2)",
+ backgroundColor: "#F24F4F",
+ color: "#fff",
},
- }}
+ ...theme.applyStyles("dark", {
+ "&:hover": {
+ backgroundColor: "#C53030",
+ color: "#fff",
+ },
+ }),
+ })}
>
<DeleteIcon />
<span>Delete</span>