vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] v-calendar wrong height if event-more="false"

Open AuspeXeu opened this issue 6 years ago • 4 comments

Environment

Vuetify Version: 2.1.11 Vue Version: 2.6.10 Browsers: Firefox 70.0 OS: Windows 10

Steps to reproduce

  1. Add several events for the same date
  2. Disable the more functionality of the calendar
  3. See the day overflowing

Expected Behavior

The day should automatically adjust its height to fit all of its content in case :event-more="false".

Actual Behavior

Events spill into other days and become unclickable.

Reproduction Link

https://codepen.io/auspex/pen/gOONaNR?&editable=true&editors=101

image

AuspeXeu avatar Nov 26 '19 06:11 AuspeXeu

Workaround, add the following CSS:

.v-calendar-weekly { display: table; table-layout: fixed; } .v-calendar-weekly__week { height: auto; display: table-row; } .v-calendar-weekly__day { display: table-cell; width: calc(100% / 7) }

https://codepen.io/pumpknhd/pen/JjYjxRz?editors=0100

pumpknhd avatar Apr 10 '20 00:04 pumpknhd

This workaround breaks the day of week labels (places them all in the first column). Add the following CSS to fix those as well:

.v-calendar-weekly__head {
    height: auto;
    display: table-row;
}

.v-calendar-weekly__head-weekday {
    display: table-cell;
    width: calc(100% / 7)
}

youngmd avatar Apr 28 '20 15:04 youngmd

Sadly the workaround creates another issue image

Fixed by using

.v-calendar-weekly {
  display: grid;
  table-layout: fixed;
}

instead of

.v-calendar-weekly {
  display: table;
  table-layout: fixed;
}

MartinX3 avatar Jul 27 '22 14:07 MartinX3

Fixed by using

.v-calendar-weekly__day {
  overflow-y: auto;
}

iguilhermeluis avatar Aug 24 '22 20:08 iguilhermeluis