Skip to content

armgit / ente

Public Imported from GitHub
0

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

Show text instead of icon for Add photos button on mobile in public albums

Anand Baburajan2ec6a6be5b7c
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index f65aed9052..698214c0b6 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -711,32 +711,22 @@ const AddPhotosButton: React.FC<ButtonishProps> = ({ onClick }) => {
const isSmallWidth = useIsSmallWidth();
return (
- <Box>
- {isSmallWidth ? (
- <IconButton {...{ onClick, disabled }}>
+ <FocusVisibleButton
+ color="secondary"
+ startIcon={
+ isSmallWidth ? undefined : (
<HugeiconsIcon
icon={ImageAdd02Icon}
- size={22}
+ size={20}
strokeWidth={1.8}
/>
- </IconButton>
- ) : (
- <FocusVisibleButton
- color="secondary"
- startIcon={
- <HugeiconsIcon
- icon={ImageAdd02Icon}
- size={20}
- strokeWidth={1.8}
- />
- }
- sx={{ borderRadius: "16px" }}
- {...{ onClick, disabled }}
- >
- {t("add_photos")}
- </FocusVisibleButton>
- )}
- </Box>
+ )
+ }
+ sx={{ borderRadius: "16px" }}
+ {...{ onClick, disabled }}
+ >
+ {t("add_photos")}
+ </FocusVisibleButton>
);
};