From 78a3ff2b5c139404626c5233ad07bb0b2b79a9ed Mon Sep 17 00:00:00 2001 From: Robin Leber <rleber98@gmail.com> Date: Mon, 8 Jul 2024 10:11:27 +0200 Subject: [PATCH] code editor style --- src/functions/codeEditor.js | 1 + src/style.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/functions/codeEditor.js b/src/functions/codeEditor.js index c21ddf6..645603d 100644 --- a/src/functions/codeEditor.js +++ b/src/functions/codeEditor.js @@ -51,6 +51,7 @@ export const codeEditorElement = (instance) => { containerHeading.appendChild(document.createTextNode("CODE EDITOR")); containerHeading.style.marginTop = "6px"; containerHeading.style.marginBottom = "0px"; + containerHeading.style.textAlign = "center"; editorContainer.appendChild(containerHeading); const editorNameElement = document.createElement("h4"); diff --git a/src/style.css b/src/style.css index 29d30bc..d75a4ba 100644 --- a/src/style.css +++ b/src/style.css @@ -140,7 +140,7 @@ body { .editorContainer { position: absolute; text-align: left; - width: 80%; + width: 75%; border-radius: 12px; padding: 12px; box-shadow: 0px 0px 12px darkgray; -- GitLab