Skip to content

Commit

Permalink
Add timeline fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcconechy committed Apr 10, 2024
1 parent dfb7581 commit 152c112
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
7 changes: 7 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# What's New with Enterprise

## v4.94.1

## v4.94.1 Fixes

- `[Homepage]` Fixed bug that caused errors on resize when no widgets. ([#8611](https://github.com/infor-design/enterprise/issues/8611))
- `[Timeline]` Added fix to timeline layout. ([#8586](https://github.com/infor-design/enterprise/issues/8586))

## v4.94.0

## v4.94.0 Features
Expand Down
6 changes: 4 additions & 2 deletions src/components/homepage/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,10 @@ Homepage.prototype = {
let rowsUsed = 0;
let abort = false;
let calcHeight = card.outerHeight();
calcHeight += parseInt(window.getComputedStyle(card[0]).getPropertyValue('margin-top'), 10);
calcHeight += parseInt(window.getComputedStyle(card[0]).getPropertyValue('margin-bottom'), 10);
if (card[0]) {
calcHeight += parseInt(window.getComputedStyle(card[0]).getPropertyValue('margin-top'), 10);
calcHeight += parseInt(window.getComputedStyle(card[0]).getPropertyValue('margin-bottom'), 10);
}

for (let rows = 0; rows < this.rowsAndCols.length && !abort; rows++) {
rowsUsed++;
Expand Down
8 changes: 0 additions & 8 deletions src/components/timeline/_timeline-new.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@
top: -0.12em;
}

@media (min-width: 767px) {
.timeline {
&::before {
left: 12.7em;
}
}
}

html[dir='rtl'] {
.indicator-container {
right: -2px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/timeline/_timeline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
position: absolute;
top: 0;
width: 3px;
height: 80%;
height: calc(80% + 5px);
}

.indicator {
Expand Down

0 comments on commit 152c112

Please sign in to comment.