Skip to content

Commit 474119d

Browse files
chore: keep error message centering
* address concerns of @silverwind and in case of an error add 'display: flex' to the heatmap element, resulting in a nicely centered error message (since we kept the centering attributes in heatmap.less)
1 parent 046d8c8 commit 474119d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web_src/js/features/heatmap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default async function initHeatmap() {
1818
new View().$mount(el);
1919
} catch (err) {
2020
console.error(err);
21+
el.style.display = "flex";
2122
el.textContent = 'Heatmap failed to load';
2223
}
2324
}

0 commit comments

Comments
 (0)