Skip to content

Commit

Permalink
fix(fields): set calendar range popup width in DateRangePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Jun 7, 2024
1 parent 995ec7e commit a758655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/fields/DateRangePicker/RangeCalendarPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export function RangeCalendarPicker({
return (
<StyledRsuiteCalendarBox
ref={boxRef}
$isDoubleCalendar={!hasSingleCalendar}
className="Field-DateRangePicker__RangeCalendarPicker"
onClick={stopMouseEventPropagation}
>
Expand Down
2 changes: 2 additions & 0 deletions src/fields/shared/StyledRsuiteCalendarBox.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import styled from 'styled-components'

export const StyledRsuiteCalendarBox = styled.div<{
$isDoubleCalendar?: boolean
$isRightAligned?: boolean
}>`
font-size: 13px !important;
Expand All @@ -20,6 +21,7 @@ export const StyledRsuiteCalendarBox = styled.div<{
top: 0 !important;
line-height: 1;
padding: 0;
${p => p.$isDoubleCalendar && `width: 483px;`}
> .rs-picker-daterange-panel {
min-width: unset !important;
Expand Down

0 comments on commit a758655

Please sign in to comment.