Skip to content

Commit

Permalink
Calendar overflow y-scope#14
Browse files Browse the repository at this point in the history
  • Loading branch information
jackluo923 authored Mar 11, 2024
2 parents c6e5db9 + 9efc87f commit 1620d81
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Viewer/components/modals/CalendarModal/DatetimePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@ const DateTimePicker = ({onChange, value}) => {
<DateCalendar
{...commonProps}
sx={{
height: "300px",
minWidth: "260px",
borderRight: "1px solid rgba(0, 0, 0, 0.2)",
".MuiMonthCalendar-root": {
width: "100%",
},
".MuiYearCalendar-root": {
width: "100%",
},
"borderRight": "1px solid rgba(0, 0, 0, 0.2)",
"height": "320px",
"minWidth": "260px",
}}
views={[
"year",
Expand All @@ -60,7 +66,7 @@ const DateTimePicker = ({onChange, value}) => {
timeSteps={{hours: 1, minutes: 1, seconds: 1}}
sx={{
".MuiMultiSectionDigitalClockSection-root": {
maxHeight: "300px",
maxHeight: "320px",
width: "72px",
},
"borderBottom": "0",
Expand Down

0 comments on commit 1620d81

Please sign in to comment.