Skip to content

Commit

Permalink
Fixed timeline bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanLieckens committed Mar 25, 2024
1 parent f0a8cd8 commit a9c145d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Project/MvpSite/rendering/wwwroot/js/mvp-site.es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function timelineEventsHeightRecalculation($timeline, reset) {
if (reset) {
$e.css("height", "");
} else {
if (i % 3 === 0) {
if (i % 3 === 0 && $e.next().length > 0) {
$e.height(50);
} else if (i % 3 === 1) {
var prevCard = $prev.children(".card").height();
Expand Down Expand Up @@ -91,6 +91,7 @@ $(document).ready(function () {
setTimeout(timelineEventsHeightRecalculation($timeline, $window.width() < 576), 2000);
setTimeout(timelineEventsHeightRecalculation($timeline, $window.width() < 576), 3000);
setTimeout(timelineEventsHeightRecalculation($timeline, $window.width() < 576), 5000);
setTimeout(timelineEventsHeightRecalculation($timeline, $window.width() < 576), 10000);

$window.on("resize", function () {
timelineEventsHeightRecalculation($timeline, $window.width() < 576);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Project/MvpSite/rendering/wwwroot/js/mvp-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$e.css("height", "");
}
else {
if (i % 3 === 0) {
if (i % 3 === 0 && $e.next().length > 0) {
$e.height(50);
}
else if (i % 3 === 1) {
Expand Down Expand Up @@ -90,6 +90,7 @@ $(document).ready(function () {
setTimeout(timelineEventsHeightRecalculation($timeline, $window.width() < 576), 2000);
setTimeout(timelineEventsHeightRecalculation($timeline, $window.width() < 576), 3000);
setTimeout(timelineEventsHeightRecalculation($timeline, $window.width() < 576), 5000);
setTimeout(timelineEventsHeightRecalculation($timeline, $window.width() < 576), 10000);

$window.on("resize", function () {
timelineEventsHeightRecalculation($timeline, $window.width() < 576);
Expand Down

0 comments on commit a9c145d

Please sign in to comment.