Skip to content

Commit

Permalink
quickfix of js error
Browse files Browse the repository at this point in the history
  • Loading branch information
theory-of-evrth committed Dec 3, 2024
1 parent 62d8609 commit 5a1adad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions timeliner/resources/js/timelinelistener.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ document.addEventListener('DOMContentLoaded', () => {
const nodes = document.querySelectorAll('.node');
const dates = [];

if (nodes.length === 0) {
console.warn("No nodes found.");
return;
}

// Gather all milestone dates for range calculation
nodes.forEach(node => {
const milestones = node.querySelectorAll('.milestone');
Expand Down
2 changes: 1 addition & 1 deletion timeliner/resources/views/timeline/timeline.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@endauth

<!-- Timeline show section -->
<div class="timeline w-[100%] overflow-x-auto border border-gray-300 rounded-lg p-2 bg-blue-100">
<div class="timeline w-[100%] h-[50%] overflow-x-auto border border-gray-300 rounded-lg p-2 bg-blue-100">
<!-- Inner content that is wider than the container -->


Expand Down

0 comments on commit 5a1adad

Please sign in to comment.