Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Timeline with visual bug

digitalmanagerguru free asked 5 years ago


As we can see here: https://mdbootstrap.com/plugins/vue/timeline/

The timeline on the left side doesnt have the left border.

The same doesn't happen on angular version or jquery:

https://mdbootstrap.com/plugins/angular/timeline/https://mdbootstrap.com/plugins/jquery/timeline/

EDIT: Problem seems to be on this line:

 this.light ? "timeline-light" : "stepper stepper-vertical pl-0",

removing the pl-0 solves it (Its how Angular version is working)

I've tested on 6.0.0 and by removing only that pl-0 it worked. ;)


Magdalena Dembna staff commented 5 years ago

Thank you for this remark, we will check out this issue and analyze the origin of pl-0 and whether it can be safely removed. Kind regards, Magdalena


digitalmanagerguru free answered 5 years ago


Those css of timeline:

.timeline-icon {
  position: absolute;
  right: -16px;
  top: 17px;
}

.icon-shadow {
  text-shadow: 6px 2px 8px rgba(0, 0, 0, 0.15);
}

.timeline-icon-inverted {
  position: absolute;
  left: -16px;
  top: 17px;
}

Should be instead:

.timeline-icon {
  position: absolute;
  right: -15px;
  top: 17px;
}

.icon-shadow {
  text-shadow: 6px 2px 8px rgba(0, 0, 0, 0.15);
}

.timeline-icon-inverted {
  position: absolute;
  left: -15px;
  top: 17px;
}

Because if you remove the box-shadow of it and keep a strong black border you'll see a gap between the border and the arrow icon. This little change fix that gap.


Magdalena Dembna staff commented 5 years ago

In the new version (6.0.1) we have removed class pl-0 from mdbTimeline. We will take a look at this next issue. Kind regards, Magdalena


digitalmanagerguru free answered 5 years ago


Btw, would be awesome if we could change the order of elements.

For example, let say I want to have: Title > Text > Time. Right now the default design is: Title > Time > Text.

With flex, I could use the column-reverse

But I would need a way to pass through the classes:

The code for the flex would be like this for example:

<div class="d-flex flex-column-reverse"><p class="text-muted mt-3">
            <i class="far fa-clock" aria-hidden="true"></i> 11 hours ago via
            Twitter
          </p>
          <p class="mb-0">
            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
            eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
            enim ad minim veniam, quis nostrud exercitation ullamco laboris
            nisi ut aliquip ex ea commodo consequat.
          </p></div>

Magdalena Dembna staff commented 5 years ago

We didn't plan changes in layout for this component, but we will discuss this possibility. Kind regards, Magdalena



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.0.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Win.10
  • Provided sample code: No
  • Provided link: Yes