vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report][3.3.16] VDatePicker landscape mode not working

Open jakubmatisak opened this issue 1 year ago • 4 comments

Environment

Vuetify Version: 3.3.16 Vue Version: 3.3.4 Browsers: Chrome 116.0.0.0 OS: Windows 10

Steps to reproduce

After applying prop "lanscape" nothing happened.

Expected Behavior

Show lanscape mode of VDatePicker.

Actual Behavior

Nothing happening, still in portrait mode.

Reproduction Link

https://play.vuetifyjs.com/#...

jakubmatisak avatar Sep 18 '23 11:09 jakubmatisak

This bug is still present in v3.4.0

Reproduction Link:

https://play.vuetifyjs.com/#eNpVjksKwjAQhq8SZm1ToYJQouA5jIuQjhBtkzBJKkW8u2NVaFczfPyv8xMS2foUoxwLQgsq4xB7k/GovRBqrGzw2TiPNIMZUXiIW0nZXaeDhhSNxcpQKL7T8FPNuo5jqujsHUnY0AdidSQ3GJo0iLY3vkvWRGScqSCbVb1y/SuZcud3Ef/LSapeDIbXBhrZyD187k5u4fIGeqlJnA==

MarcHartwig13 avatar Nov 10 '23 21:11 MarcHartwig13

Seems that the Picker element relies on a grid-template to organise its layout, but the title and the header elements are nested inside a container <div>, which means that they're not considered grid elements and thus breaking the grid layout.

<div class="v-picker v-picker--landscape v-date-picker">
    <div class="">
        <div class="v-picker-title">
            <!-- TITLE CONTENT -->
        </div>
        <div class="v-picker__header">
            <!-- HEADER CONTENT -->
        </div>
    </div>
    <div class="v-picker__body">
        <!-- BODY CONTENT-->
    </div>
</div>

craigrileyuk avatar Dec 15 '23 13:12 craigrileyuk

still present in v3.5.8

Ribeiro-Tiago avatar Mar 06 '24 09:03 Ribeiro-Tiago

Still present in v3.6.5

rauhur avatar May 14 '24 11:05 rauhur

Still present in v3.6.11 I use a small css fix in my project:

  .v-picker.v-sheet.v-date-picker.v-picker--landscape {
    grid-template-areas: 'header body';
    grid-template-columns: 224px 328px;
    width: unset;
  }

https://play.vuetifyjs.com/#eNqNj0GOwjAMRa8SZcNmQqXOLEadDhLnoCxMYtGINLWStFAh7k5IW1QkFmwS+/vr+3l35d7JbEu07jvkBS8DNmQg4KayjJW9AKJUpka2NoC26CYpiSq6BWl5Qsdka1r3X3FyugE3VJwZsMpLINyU2Yt3GRF083HEwjuDRfWV7KGM4GW2OCi2PgxmvG3dTymx8DViiP8C7zkW4rmfXceFR6eVmHMFOARfsFWNoCL/oVXD6u+dMV7WNTZa8/yHLuw7/6XLZDxrFeqCddZjSNLtgT7D8tuX7YxJz/4ORBCUEw== But I'm not sure if it's the best solution Maybe the @KaelWD , @johnleider or @nekosaur can look at this

overclocked555 avatar Jul 07 '24 16:07 overclocked555