Skip to content

armgit / ente

Public Imported from GitHub
0

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

Customize the paper slot the new way

Manav Rathi122799130079
diff --git a/web/packages/new/photos/components/PhotoDateTimePicker.tsx b/web/packages/new/photos/components/PhotoDateTimePicker.tsx
index faf61c702a..dc5f46e18d 100644
--- a/web/packages/new/photos/components/PhotoDateTimePicker.tsx
+++ b/web/packages/new/photos/components/PhotoDateTimePicker.tsx
@@ -76,13 +76,13 @@ export const PhotoDateTimePicker: React.FC<PhotoDateTimePickerProps> = ({
disableFuture={true}
onAccept={handleAccept}
slots={{ field: EmptyField }}
+ slotProps={{ mobilePaper: { sx: { width: "320px" } } }}
DialogProps={{
sx: {
zIndex: "1502",
".MuiPickersToolbar-penIconButton": {
display: "none",
},
- ".MuiDialog-paper": { width: "320px" },
".MuiClockPicker-root": {
position: "relative",
minHeight: "292px",