diff --git a/bullet/web/static/js/live-results.js b/bullet/web/static/js/live-results.js
index aff9af81..06ba9c0b 100644
--- a/bullet/web/static/js/live-results.js
+++ b/bullet/web/static/js/live-results.js
@@ -15,7 +15,11 @@
}
document.getElementById("js-title-"+i).innerText = screens[i].title
- htmx.ajax("GET", screens[i].url, "#js-screen-"+i)
+ try {
+ htmx.ajax("GET", screens[i].url, "#js-screen-"+i)
+ } catch (e) {
+ console.log(`Unable to load screen #${i}: ${e}`)
+ }
}
setTimeout(scrollMore, 5000)
@@ -36,6 +40,11 @@
const oldScroll = document.scrollingElement.scrollTop
const row = document.querySelector("#js-results-content tr")
+ if (!row) {
+ console.error("No results are loaded, trying to reload results in 1s")
+ setTimeout(nextScreen, 1000)
+ return;
+ }
const offset = Math.max(Math.round(row.clientHeight / 40), 1)
const divided = row.clientHeight / offset
document.scrollingElement.scrollTop += offset
diff --git a/tailwind.config.js b/tailwind.config.js
index 6d1cc689..6450754d 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -8,6 +8,9 @@ module.exports = {
],
theme: {
extend: {
+ aspectRatio: {
+ '4/3': '4 / 3',
+ },
colors: {
primary: "var(--primary)",
"primary-light": "var(--primary-light)",