.flatpickr_wrapper {
white-space: nowrap;
}
/* Shortcut buttons plugin */
.shortcut-buttons-flatpickr-wrapper {
display: flex;
justify-content: center;
padding: 5px;
.shortcut-buttons-flatpickr-label {
align-content: center;
flex-direction: column;
padding: 0 5px;
.shortcut-buttons-flatpickr-buttons {
flex-flow: row wrap;
.shortcut-buttons-flatpickr-button {
background: transparent none;
border: 0;
color: #004D99;
font-size: 90%;
margin: 2px;
&:hover {
color: #538200;
label: __("Tomorrow")
],
label: "or",
label: __("or"),
onClick: (index, fp) => {
let date;
switch (index) {
case 0:
date = new Date(Date.now() - 24 * 60 * 60 * 1000);
date = new Date().fp_incr(-1);
break;
case 1:
date = new Date();
case 2:
date = new Date(Date.now() + 24 * 60 * 60 * 1000);
date = new Date().fp_incr(1);
date.setHours(23, 59, 0, 0);
-