From d9420fffca6865a7c74d71df1d338e38dfe4476d Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 26 Feb 2022 00:45:15 +0100 Subject: [PATCH] Fix bug where customCss was filling html + some UX stabilization --- web/src/app/js/base.js | 1 + web/src/app/js/templates/home/quiz_item.html | 2 +- web/src/app/js/templates/quiz/item.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/app/js/base.js b/web/src/app/js/base.js index 25ffb16..e43d54f 100644 --- a/web/src/app/js/base.js +++ b/web/src/app/js/base.js @@ -367,6 +367,7 @@ function calcCustomCss() { var dom = document.getElementById('custom-css'); if (dom === null) { dom = document.createElement('style'); + dom.id = 'custom-css'; document.body.appendChild(dom); } diff --git a/web/src/app/js/templates/home/quiz_item.html b/web/src/app/js/templates/home/quiz_item.html index 2bb8882..78f1d42 100644 --- a/web/src/app/js/templates/home/quiz_item.html +++ b/web/src/app/js/templates/home/quiz_item.html @@ -1,4 +1,4 @@ -
diff --git a/web/src/app/js/templates/quiz/item.html b/web/src/app/js/templates/quiz/item.html index 701cd06..eca39ed 100644 --- a/web/src/app/js/templates/quiz/item.html +++ b/web/src/app/js/templates/quiz/item.html @@ -13,7 +13,7 @@
{loop:options} -