Skip to content

armgit / ente

Public Imported from GitHub
0

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

Create button

Manav Rathibe894d0aaaec
diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsx
index d06cda052f..af8d15a4b5 100644
--- a/web/packages/new/photos/components/CollectionSelector.tsx
+++ b/web/packages/new/photos/components/CollectionSelector.tsx
@@ -1,11 +1,10 @@
-import { SpaceBetweenFlex } from "@/base/components/containers";
+import { CenteredFill, SpaceBetweenFlex } from "@/base/components/containers";
import { type ButtonishProps } from "@/base/components/mui";
import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import type { Collection } from "@/media/collection";
import {
ItemCard,
LargeTileButton,
- LargeTilePlusOverlay,
LargeTileTextOverlay,
} from "@/new/photos/components/Tiles";
import {
@@ -15,10 +14,12 @@ import {
type CollectionSummaries,
type CollectionSummary,
} from "@/new/photos/services/collection/ui";
+import AddIcon from "@mui/icons-material/Add";
import {
Dialog,
DialogContent,
DialogTitle,
+ Stack,
styled,
Typography,
useMediaQuery,
@@ -228,10 +229,21 @@ const CollectionButton: React.FC<CollectionButtonProps> = ({
);
const AddCollectionButton: React.FC<ButtonishProps> = ({ onClick }) => (
- <ItemCard TileComponent={LargeTileButton} onClick={onClick}>
- <LargeTileTextOverlay>
+ <LargeTileButton onClick={onClick}>
+ <Stack
+ sx={{
+ flex: 1,
+ height: "100%",
+ border: "1px dashed",
+ borderColor: "stroke.muted",
+ borderRadius: "4px",
+ padding: 1,
+ }}
+ >
<Typography>{t("create_albums")}</Typography>
- </LargeTileTextOverlay>
- <LargeTilePlusOverlay>+</LargeTilePlusOverlay>
- </ItemCard>
+ <CenteredFill>
+ <AddIcon />
+ </CenteredFill>
+ </Stack>
+ </LargeTileButton>
);