Skip to content

armgit / ente

Public Imported from GitHub
0

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

Swap

Manav Rathi605fda2710ba
diff --git a/web/packages/new/photos/components/CollectionsSortOptions.tsx b/web/packages/new/photos/components/CollectionsSortOptions.tsx
index d33bce1ed1..b2965edf9e 100644
--- a/web/packages/new/photos/components/CollectionsSortOptions.tsx
+++ b/web/packages/new/photos/components/CollectionsSortOptions.tsx
@@ -1,8 +1,8 @@
-import type { CollectionsSortBy } from "@/new/photos/services/collection/ui";
import {
OverflowMenu,
OverflowMenuOption,
-} from "@ente/shared/components/OverflowMenu";
+} from "@/base/components/OverflowMenu";
+import type { CollectionsSortBy } from "@/new/photos/services/collection/ui";
import TickIcon from "@mui/icons-material/Done";
import SortIcon from "@mui/icons-material/Sort";
import SvgIcon from "@mui/material/SvgIcon";
@@ -45,6 +45,10 @@ export const CollectionsSortOptions: React.FC<CollectionsSortOptionsProps> = ({
triggerButtonIcon={<SortIcon />}
menuPaperProps={{
sx: {
+ // The trigger button has a colored background, so add some
+ // vertical margin to avoid showing the menu squat under the
+ // trigger button.
+ marginBlock: 1,
backgroundColor: (theme) =>
nestedInDialog
? theme.colors.background.elevated2