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

sometimes missing lines in nested q-timeline #17654

Open
dannyb2018 opened this issue Nov 21, 2024 · 1 comment
Open

sometimes missing lines in nested q-timeline #17654

dannyb2018 opened this issue Nov 21, 2024 · 1 comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/umd kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@dannyb2018
Copy link

What happened?

Was attempting to have a timeline within a timeline - in my case was a list of orders and within each order timeline entry a timeline of updates. Sometimes there was be a line between the dots and sometimes there wasnt. I have made the simplest example of when this happens. Basically if there is a timeline-entry below then the line shows up in the nested timeline and if there is not then it doesnt

What did you expect to happen?

I am expecting each timeline, both external and nested to show lines between dots

Reproduction URL

https://jsfiddle.net/36pxf9y5/

How to reproduce?

Flavour

UMD

Areas

Components (quasar)

Platforms/Browsers

Firefox, Chrome

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/umd labels Nov 21, 2024
@FangHanZreo
Copy link

The reason for this issue is the CSS selector .q-timeline__entry:last-child .q-timeline__dot:after. This selector sets content: none;, causing all .q-timeline__dot elements in the second level to lose their timeline. To quickly resolve this issue, you can add the following global CSS code:

// add a line after the dot
.q-timeline__entry:last-child .q-timeline__dot:after {
  content: '' !important;
}

// for the last child of the timeline, remove the line after the dot
.q-timeline__entry:last-child > .q-timeline__dot:after {
  content: none !important;
}

The q-timeline component seems not to have considered nested usage, which led to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/umd kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants