Skip to content

armgit / ente

Public Imported from GitHub
0

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

Tweak

Manav Rathi2fbc3d1b903a
diff --git a/web/packages/new/photos/components/CollectionsSortOptions.tsx b/web/packages/new/photos/components/CollectionsSortOptions.tsx
index 88d8132dd6..d33bce1ed1 100644
--- a/web/packages/new/photos/components/CollectionsSortOptions.tsx
+++ b/web/packages/new/photos/components/CollectionsSortOptions.tsx
@@ -24,10 +24,10 @@ interface CollectionsSortOptionsProps {
*/
nestedInDialog?: boolean;
/**
- * Set this to true to disable the background in the button that triggers
- * the menu.
+ * Set this to true to disable the background for the icon button that
+ * triggers the menu.
*/
- disableTriggerButtonBackground?: boolean;
+ transparentTriggerButtonBackground?: boolean;
}
/**
@@ -37,7 +37,7 @@ interface CollectionsSortOptionsProps {
*/
export const CollectionsSortOptions: React.FC<CollectionsSortOptionsProps> = ({
nestedInDialog,
- disableTriggerButtonBackground,
+ transparentTriggerButtonBackground,
...optProps
}) => (
<OverflowMenu
@@ -54,7 +54,7 @@ export const CollectionsSortOptions: React.FC<CollectionsSortOptionsProps> = ({
triggerButtonProps={{
sx: {
backgroundColor: (theme) =>
- disableTriggerButtonBackground
+ transparentTriggerButtonBackground
? undefined
: theme.colors.fill.faint,
},
diff --git a/web/packages/new/photos/components/gallery/BarImpl.tsx b/web/packages/new/photos/components/gallery/BarImpl.tsx
index 6cdaf4b6ea..43ca6853ef 100644
--- a/web/packages/new/photos/components/gallery/BarImpl.tsx
+++ b/web/packages/new/photos/components/gallery/BarImpl.tsx
@@ -223,7 +223,7 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({
<CollectionsSortOptions
activeSortBy={collectionsSortBy}
onChangeSortBy={onChangeCollectionsSortBy}
- disableTriggerButtonBackground
+ transparentTriggerButtonBackground
/>
<IconButton onClick={onShowAllCollections}>
<ExpandMore />