🐛(react) adjust the calendar width with a full width input

Establish a maximum width for the calendar that slightly
exceeds the Figma design, allowing for optimal display
of most timezone locales without expanding to fit the full
width input.
This commit is contained in:
Lebaud Antoine
2023-06-20 17:48:38 +02:00
committed by aleb_the_flash
parent f8326c5de6
commit 3b13bcae65
2 changed files with 9 additions and 0 deletions

View File

@@ -213,6 +213,7 @@
.c__calendar {
display: block;
transform: translate(2px, 0);
max-width: px-to-rem(340px);
&__wrapper {
display: block;

View File

@@ -87,6 +87,14 @@ export const WithText = {
},
};
export const Fullwidth = {
render: Template,
args: {
defaultValue: "2023-05-24",
fullWidth: true,
},
};
export const Controlled = () => {
const [value, setValue] = useState<StringOrDate | null>("2023-05-26");
return (