Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] Remove gradient and fix disabled button visibility in large files page

Anand Baburajancf63c9fcf647
diff --git a/web/apps/photos/src/pages/large-files.tsx b/web/apps/photos/src/pages/large-files.tsx
index 22ef3f9b38..8b22449f0f 100644
--- a/web/apps/photos/src/pages/large-files.tsx
+++ b/web/apps/photos/src/pages/large-files.tsx
@@ -622,8 +622,6 @@ const BottomBar: React.FC<BottomBarProps> = ({
gap: 1,
alignItems: "center",
justifyContent: "center",
- background:
- "linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 70%, transparent 100%)",
paddingBottom: 1,
}}
>
@@ -666,7 +664,7 @@ const DeleteButton: React.FC<DeleteButtonProps> = ({
return (
<FocusVisibleButton
- sx={{
+ sx={(theme) => ({
px: { xs: 2, sm: 3 },
width: { xs: 220, sm: 260 },
minHeight: { xs: 42, sm: 44 },
@@ -678,10 +676,16 @@ const DeleteButton: React.FC<DeleteButtonProps> = ({
color: "critical.contrastText",
}
: {
- backgroundColor: "rgba(255, 255, 255, 0.12)",
- color: "rgba(255, 255, 255, 0.5)",
+ // Light mode default
+ backgroundColor: "rgba(0, 0, 0, 0.3)",
+ color: "rgba(0, 0, 0, 0.5)",
+ // Dark mode override
+ ...theme.applyStyles("dark", {
+ backgroundColor: "rgba(255, 255, 255, 0.3)",
+ color: "rgba(255, 255, 255, 0.5)",
+ }),
},
- }}
+ })}
disabled={selectedCount === 0 || isDeleting}
color="critical"
onClick={onDeleteFiles}