Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix dep

Manav Rathi7510be74535e
diff --git a/web/apps/photos/src/components/ItemList.tsx b/web/apps/photos/src/components/ItemList.tsx
index 6da4d6dde3..70c0526013 100644
--- a/web/apps/photos/src/components/ItemList.tsx
+++ b/web/apps/photos/src/components/ItemList.tsx
@@ -43,12 +43,16 @@ const Row: <T>({
const { renderListItem, items, getItemTitle } = data;
return (
<Tooltip
- PopperProps={{
- sx: {
- ".MuiTooltip-tooltip.MuiTooltip-tooltip.MuiTooltip-tooltip":
+ slotProps={{
+ // Reduce the vertical offset of the tooltip "popper" from
+ // the element on which the tooltip appears.
+ popper: {
+ modifiers: [
{
- marginTop: 0,
+ name: "offset",
+ options: { offset: [0, -14] },
},
+ ],
},
}}
title={getItemTitle(items[index])}
diff --git a/web/packages/shared/components/CopyButton.tsx b/web/packages/shared/components/CopyButton.tsx
index 34302d17c3..bcb46fbac1 100644
--- a/web/packages/shared/components/CopyButton.tsx
+++ b/web/packages/shared/components/CopyButton.tsx
@@ -30,7 +30,7 @@ export default function CopyButton({
arrow
open={copied}
title={t("COPIED")}
- PopperProps={{ sx: { zIndex: 2000 } }}
+ slotProps={{ popper: { sx: { zIndex: 2000 } } }}
>
<IconButton onClick={copyToClipboardHelper(code)} color={color}>
{copied ? (