From 87b84d227555894c1f53168c4774974ebffef46c Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 15 Mar 2023 16:39:59 -0300 Subject: [PATCH] CSS fix --- css/chat.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/css/chat.js b/css/chat.js index 4a78e454..cbdcf91e 100644 --- a/css/chat.js +++ b/css/chat.js @@ -1,2 +1,6 @@ -document.getElementById("main").childNodes[0].style = "max-width: 800px; margin-left: auto; margin-right: auto"; -document.getElementById("extensions").style = "max-width: 800px; margin-left: auto; margin-right: auto"; +document.getElementById("main").style.setProperty("max-width", "800px"); +document.getElementById("main").style.setProperty("margin-left", "auto"); +document.getElementById("main").style.setProperty("margin-right", "auto"); +document.getElementById("extensions").style.setProperty("max-width", "800px"); +document.getElementById("extensions").style.setProperty("margin-left", "auto"); +document.getElementById("extensions").style.setProperty("margin-right", "auto");