vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report][3.2.2] the width of cards in timeline are not equal

Open zhaolinlau opened this issue 2 years ago • 5 comments

Environment

Vuetify Version: 3.2.2 Vue Version: 3.2.47 Browsers: Firefox 112.0 OS: Windows 10

Steps to reproduce

Put cards as timeline item and the width of cards are not equal

Expected Behavior

The width of cards should be equal

Actual Behavior

The width of cards are not equal

Reproduction Link

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

zhaolinlau avatar May 03 '23 23:05 zhaolinlau

I don't think it's up to v-timeline to set the width of the items - you can do this yourself by add width="100%' to v-timeline-item in your case - example here.

lioneaglesolutions avatar May 04 '23 02:05 lioneaglesolutions

I don't think it's up to v-timeline to set the width of the items - you can do this yourself by add width="100%' to v-timeline-item in your case - example here.

I did try by adding .w-100 to v-timeline-item but not working at all, thank you anyway

zhaolinlau avatar May 04 '23 04:05 zhaolinlau

@zhaolinlau did it work using width="100%"?

lioneaglesolutions avatar May 04 '23 06:05 lioneaglesolutions

@zhaolinlau did it work using width="100%"?

Yep

zhaolinlau avatar May 04 '23 06:05 zhaolinlau

It is inconsistent though, should either remove justify-self: flex-end from the inverted items, or add justify-self: flex-start to the others.

KaelWD avatar May 04 '23 12:05 KaelWD

You can define the grid column width like the following (ratio here: 3:1:3)

<v-timeline style="grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 3fr)">
 <v-timeline-item class="mx-auto">
 ...

This will keep the timeline centered.

murphy1312 avatar May 06 '23 13:05 murphy1312

any update?

zhaolinlau avatar Sep 11 '23 15:09 zhaolinlau