diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index da352a58..e5ad0c87 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -1,46 +1,54 @@ @@ -51,6 +59,7 @@ import {computed, ref, watch} from 'vue' import {useI18n} from 'vue-i18n' import {store} from '@/store' import {format} from 'date-fns' +import Popup from '@/components/misc/popup' const {t} = useI18n() @@ -202,15 +211,25 @@ const customRangeActive = computed(() => { .datepicker-with-range-container { position: relative; z-index: 10; + + :deep(.popup) { + margin-top: 1rem; + border-radius: $radius; + border: 1px solid var(--grey-200); + background-color: var(--white); + box-shadow: $shadow; + + &.is-open { + width: 500px; + height: 320px; + } + } } .datepicker-with-range { - border-radius: $radius; - border: 1px solid var(--grey-200); - background-color: var(--white); - box-shadow: $shadow; display: flex; - width: 500px; + width: 100%; + height: 100%; position: absolute; :deep(.flatpickr-calendar) {