Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(people):refine-new-person-tile-and-keep-picker-open

Aswin Asok7b592a377b98
diff --git a/web/apps/photos/src/components/Collections/AllPeople.tsx b/web/apps/photos/src/components/Collections/AllPeople.tsx
index 58bdea246e..6262cc9a6f 100644
--- a/web/apps/photos/src/components/Collections/AllPeople.tsx
+++ b/web/apps/photos/src/components/Collections/AllPeople.tsx
@@ -923,7 +923,7 @@ const AddPersonDialog: React.FC<AddPersonDialogProps> = ({
return (
<>
<Dialog
- open={open && !openNameInput && cgroupPeople.length > 0}
+ open={open && cgroupPeople.length > 0}
onClose={onClose}
fullScreen={isFullScreen}
aria-labelledby={titleID}
@@ -958,30 +958,19 @@ const AddPersonDialog: React.FC<AddPersonDialogProps> = ({
<CollectionTileButton
onClick={handleAddPerson}
aria-label={t("new_person")}
- sx={{
+ sx={(theme) => ({
boxSizing: "border-box",
border: "1px dashed",
borderColor: "stroke.muted",
- backgroundColor: "fill.faint",
- "&:hover": { backgroundColor: "fill.faintHover" },
- }}
+ color: "text.muted",
+ "&:hover": { borderColor: "rgba(0 0 0 / 0.45)" },
+ ...theme.applyStyles("dark", {
+ "&:hover": {
+ borderColor: "rgba(255 255 255 / 0.45)",
+ },
+ }),
+ })}
>
- <Typography
- title={t("new_person")}
- sx={{
- position: "absolute",
- top: 8,
- insetInline: 8,
- overflow: "hidden",
- whiteSpace: "nowrap",
- textOverflow: "ellipsis",
- fontSize: 14,
- lineHeight: "20px",
- fontWeight: 500,
- }}
- >
- {t("new_person")}
- </Typography>
<AddIcon
sx={{
position: "absolute",