Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zhaolinlau opened this issue May 3, 2023 · 7 comments
Closed

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

zhaolinlau opened this issue May 3, 2023 · 7 comments
Assignees
Labels
C: VTimeline VTimeline T: bug Functionality that does not work as intended/expected
Milestone

Comments

@zhaolinlau
Copy link

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/#...

@lioneaglesolutions
Copy link
Collaborator

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.

@zhaolinlau
Copy link
Author

zhaolinlau commented May 4, 2023

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

@lioneaglesolutions
Copy link
Collaborator

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

@zhaolinlau
Copy link
Author

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

Yep

@KaelWD
Copy link
Member

KaelWD commented May 4, 2023

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 KaelWD added T: bug Functionality that does not work as intended/expected C: VTimeline VTimeline and removed S: triage labels May 4, 2023
@KaelWD KaelWD modified the milestones: v3.3.x, v3.x.x May 4, 2023
@murphy1312
Copy link

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.

@zhaolinlau

This comment was marked as off-topic.

@KaelWD KaelWD self-assigned this Sep 27, 2023
@KaelWD KaelWD modified the milestones: v3.x.x, v3.3.x Sep 27, 2023
@KaelWD KaelWD closed this as completed in 0c40304 Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VTimeline VTimeline T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

4 participants