Skip to content

armgit / ente

Public Imported from GitHub
0

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

Improve public album selection bar styling and behavior

Anand Baburajan44713268b7de
diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsx
index b799cc6c06..995338af7e 100644
--- a/web/apps/photos/src/pages/shared-albums.tsx
+++ b/web/apps/photos/src/pages/shared-albums.tsx
@@ -583,11 +583,16 @@ export default function PublicCollectionGallery() {
) : (
<>
<NavbarBase
- sx={{
- mb: "16px",
- px: "24px",
- "@media (width < 720px)": { px: "4px" },
- }}
+ sx={[
+ {
+ mb: "16px",
+ px: "24px",
+ "@media (width < 720px)": { px: "4px" },
+ },
+ selected.count > 0 && {
+ borderColor: "accent.main",
+ },
+ ]}
>
{selected.count > 0 ? (
<SelectedFileOptions
@@ -795,7 +800,13 @@ const SelectedFileOptions: React.FC<SelectedFileOptionsProps> = ({
}) => (
<Stack
direction="row"
- sx={{ flex: 1, gap: 2, alignItems: "center", mr: 1 }}
+ sx={{
+ flex: 1,
+ gap: 1,
+ alignItems: "center",
+ mx: -2,
+ "@media (width < 720px)": { mx: -1 },
+ }}
>
<IconButton onClick={clearSelection}>
<CloseIcon />
@@ -860,7 +871,7 @@ const FileListHeader: React.FC<FileListHeaderProps> = ({
spacing={1}
sx={{ alignItems: "center" }}
>
- {onShowFeed && (
+ {onShowFeed && !hasSelection && (
<IconButton onClick={onShowFeed}>
<Box
sx={{