The problem is I can't find an appropriate way with CSS styling to make the react-day-picker wide enought to fill out all a mobile display.
I've tried to customize the css file provided by react-day-picker and a lot of styles were applied but all of them weren't successfull.
.DayPicker {
display: flex;
flex-direction: row;
justify-content: space-between;
font-size: 2.5rem;
margin: 0;
margin-top: 2rem;
}
.DayPicker-wrapper {
position: relative;
flex-direction: row;
user-select: none;
width: 100%;
}
.DayPicker-Months {
display: flex;
flex-wrap: wrap;
flex-direction: column;
}
.DayPicker-Month {
display: table;
margin: 0;
margin-top: auto;
border-spacing: 0;
border-collapse: collapse;
user-select: none;
}
.DayPicker-NavBar {
position: relative;
}
.DayPicker-NavButton {
position: absolute;
top: 1.4rem;
margin-top: 2px;
width: 1.25em;
height: 1.25em;
background-position: center;
background-size: 60%;
background-repeat: no-repeat;
color: #8B9898;
cursor: pointer;
outline: none;
}
.DayPicker-NavButton:hover {
opacity: 0.8;
}
.DayPicker-NavButton--prev {
left: 10px;
}
.DayPicker-NavButton--next {
right: 10px;
}
.DayPicker-NavButton--interactionDisabled {
display: none;
}
.DayPicker-Caption {
display: table-caption;
margin-bottom: 0;
border: 1px solid #e9e9e9;
padding: 0.5em 0.5em;
background-color: #f1f1f1;
text-align: center;
}
.DayPicker-Weekdays {
display: table-header-group;
margin-top: 1em;
}
.DayPicker-WeekdaysRow {
display: none;
}
.DayPicker-Weekday {
display: table-cell;
padding: 0.5em;
color: #8B9898;
text-align: center;
font-size: 0.875em;
}
.DayPicker-Body {
display: table-row-group;
}
.DayPicker-Week {
}
.DayPicker-Day {
display: table-cell;
padding: 0.8em;
border: 1px solid #d0d4d9;
vertical-align: middle;
text-align: center;
cursor: pointer;
width: 8.9vw;
}
I want to make the calendar wide enought to fill all a mobile screen in my web-app (mobile version).