Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.43k stars 142 forks source link

"--dp-menu-min-width" creates buggy overlay in month and year picker #954

Closed NicoHof closed 3 weeks ago

NicoHof commented 1 month ago

Describe the bug Setting --dp-menu-min-width: 400px; works fine with regular date picker. Once I use it for month or year picker the overlay content is not stretched 100% width:

To Reproduce https://codesandbox.io/p/sandbox/vue3-datepicker-min-max-issue-forked-fwgl9k?file=%2Fsrc%2FApp.vue%3A5%2C40

Expected behavior The content of the overlay should also stretch 100% of available width

Screenshots Month picker: Bildschirmfoto vom 2024-07-29 22-15-53

Date picker in month view works fine: Bildschirmfoto vom 2024-07-29 22-16-21

Desktop & mobile (please complete the following information):