diff --git a/public/index.html b/public/index.html index 9ac6929..67fe27f 100644 --- a/public/index.html +++ b/public/index.html @@ -18,8 +18,8 @@ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #00003d; /* GE Aerospace Deep Navy */ color: #fff; - overflow: hidden; - height: 100vh; + margin: 0; + padding: 0; } .container { @@ -488,11 +488,6 @@ const container = document.getElementById('eventsContainer'); let html = ''; - // Limit display to fit on TV screen without scrolling - // Current events: no limit, use grid layout for space efficiency - // Upcoming events: limit to 2 to save space - const MAX_UPCOMING = 2; - // Current Events - show all in grid layout if (data.current && data.current.length > 0) { // Determine badge color based on highest severity @@ -525,13 +520,16 @@ html += ''; // Close section } - // Upcoming Events (limit to MAX_UPCOMING) + // Upcoming Events - show all in grid layout if (data.upcoming && data.upcoming.length > 0) { html += '
'; html += '
UPCOMING (Next 72 Hours)
'; - const upcomingToShow = data.upcoming.slice(0, MAX_UPCOMING); - upcomingToShow.forEach(event => { + // Determine grid class based on number of events + const gridClass = data.upcoming.length === 1 ? 'single' : 'multi'; + html += `
`; + + data.upcoming.forEach(event => { const borderColor = getColorFromType(event.typecolor); html += `
@@ -547,12 +545,8 @@ `; }); - // Show indicator if there are more events - if (data.upcoming.length > MAX_UPCOMING) { - html += `
+ ${data.upcoming.length - MAX_UPCOMING} more upcoming event(s)
`; - } - - html += '
'; + html += '
'; // Close grid + html += '
'; // Close section } // No events message