Skip to content

Commit

Permalink
fix: stretch datepicker to match rest of form inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
awesthouse committed Jun 24, 2024
1 parent dd70923 commit 276ed67
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/dm-core-plugins/src/common/Datepicker/Datepicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const Datepicker = (props: DatepickerProps): ReactElement => {
}

return (
<div>
<>
<InputWrapper
labelProps={{
label: label
Expand All @@ -166,7 +166,7 @@ export const Datepicker = (props: DatepickerProps): ReactElement => {
ref={inputWrapperRef}
direction='row'
alignItems='center'
style={{ maxWidth: 'max-content' }}
fullWidth
>
<TextField
id={`${id}-date-field`}
Expand All @@ -175,7 +175,6 @@ export const Datepicker = (props: DatepickerProps): ReactElement => {
disabled={readonly}
onChange={(e: any) => handleDateInput(e.target.value)}
onBlur={(e: any) => formatDate(e.target.value)}
style={{ width: '8rem' }}
/>
{variant === 'datetime' && (
<TextField
Expand Down Expand Up @@ -223,6 +222,6 @@ export const Datepicker = (props: DatepickerProps): ReactElement => {
</Popover>,
document.body
)}
</div>
</>
)
}

0 comments on commit 276ed67

Please sign in to comment.