Skip to content

Commit

Permalink
[@mantine/date] TimeInput: fix the width of the am/pm input (#2172)
Browse files Browse the repository at this point in the history
* [@mantine/date] TimeInput: Fix width of am/pm

The AM/PM label for `TimeInput` is getting reset to `auto` which causes
it to be around 200px wide. If the TimeInput's width is shrunk to make
it take up less extraneous space, that interior input bleeds outside of
the container width. It seems that if this `width: auto` is removed then
the input has a more reasonable size.

* Undo unintentional formatting change
  • Loading branch information
apoco committed Sep 19, 2022
1 parent 2e0426b commit 2fe91e4
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -43,7 +43,6 @@ export default createStyles((theme, { size, hasValue }: TimeInputBaseStyles) =>
},

amPmInput: {
width: 'auto',
textAlign: 'left',
},
}));

0 comments on commit 2fe91e4

Please sign in to comment.