Skip to content

armgit / ente

Public Imported from GitHub
0

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

Tweak sel bar for shared albums

Manav Rathib47a5d6a973a
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index 1e124624a1..8923448ce8 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -39,10 +39,7 @@ import {
} from "@/new/photos/services/collection";
import { sortFiles } from "@/new/photos/services/files";
import { useAppContext } from "@/new/photos/types/context";
-import {
- CenteredFlex,
- FluidContainer,
-} from "@ente/shared/components/Container";
+import { CenteredFlex } from "@ente/shared/components/Container";
import SingleInputForm, {
type SingleInputFormProps,
} from "@ente/shared/components/SingleInputForm";
@@ -657,27 +654,24 @@ const SelectedFileOptions: React.FC<SelectedFileOptionsProps> = ({
downloadFilesHelper,
count,
clearSelection,
-}) => {
- return (
- <>
- <FluidContainer>
- <IconButton onClick={clearSelection}>
- <CloseIcon />
- </IconButton>
- <Box sx={{ ml: 1.5 }}>
- {t("selected_count", { selected: count })}
- </Box>
- </FluidContainer>
- <Stack direction="row" sx={{ gap: 2, mr: 2 }}>
- <Tooltip title={t("download")}>
- <IconButton onClick={downloadFilesHelper}>
- <DownloadIcon />
- </IconButton>
- </Tooltip>
- </Stack>
- </>
- );
-};
+}) => (
+ <Stack
+ direction="row"
+ sx={{ flex: 1, gap: 2, alignItems: "center", mr: 1 }}
+ >
+ <IconButton onClick={clearSelection}>
+ <CloseIcon />
+ </IconButton>
+ <Typography sx={{ mr: "auto" }}>
+ {t("selected_count", { selected: count })}
+ </Typography>
+ <Tooltip title={t("download")}>
+ <IconButton onClick={downloadFilesHelper}>
+ <DownloadIcon />
+ </IconButton>
+ </Tooltip>
+ </Stack>
+);
interface ListHeaderProps {
publicCollection: Collection;