diff --git a/css/popupboxes.scss b/css/popupboxes.scss index a0cf65158..82fef1da7 100644 --- a/css/popupboxes.scss +++ b/css/popupboxes.scss @@ -13,7 +13,6 @@ justify-content: center; width: 100%; height: 100%; - overflow: auto; background-color: rbga(var(--my-background-color), 0.4); } @@ -58,8 +57,7 @@ background-color: #000; } -.dialog-box-container, -#log-box-container { +.dialog-box-container { display: block; position: absolute; z-index: 10; @@ -74,8 +72,48 @@ border: 5px solid var(--my-highlight-color); } -.dialog-box-content, -#log-box-content { + +.log-box-container { + display: flex; + flex-flow: column; + background-color: gray; + width: 50%; + position: absolute; + left: 50%; + top: 40%; + margin: -10% 0 0 -25%; + height: auto; + max-height: 50%; + z-index: 10; + background-color: var(--my-background-color); + border: 2px solid var(--my-highlight-color); +} + +.log-box-header { + background-color: #333; + border: 1px solid var(--my-highlight-color); + display: flex; + flex: row nowrap; + align-items: center; + justify-content: space-between; +} + +.log-box-log-container { + max-width: 400px; + overflow-y: auto; +} + +.log-box-button { + color: #aaa; + font-size: $defaultFontSize; + font-weight: bold; + padding: 2px; + margin: 6px; + border: 1px solid #fff; + background-color: #000; +} + +.dialog-box-content { z-index: 2; background-color: var(--my-background-color); padding: 10px; diff --git a/css/styles.scss b/css/styles.scss index 39c70085e..ae6f1f2a9 100644 --- a/css/styles.scss +++ b/css/styles.scss @@ -17,6 +17,8 @@ body { p, pre, h2, +h3, +h4, .text, td { color: var(--my-font-color); diff --git a/src/engine.jsx b/src/engine.jsx index 0ad6da81f..159b9805f 100644 --- a/src/engine.jsx +++ b/src/engine.jsx @@ -784,10 +784,6 @@ const Engine = { updateSleevesPage(); } - if (logBoxOpened) { - logBoxUpdateText(); - } - Engine.Counters.updateDisplays = 3; } diff --git a/src/index.html b/src/index.html index fb9c707f9..6a1fd5f9d 100644 --- a/src/index.html +++ b/src/index.html @@ -290,16 +290,6 @@ if (htmlWebpackPlugin.options.googleAnalytics.trackingId) { %> - -
-
-
{props.script.filename} {props.script.args.map((x: any): string => `${x}`).join(' ')}
+{props.script.logs.map((line: string, i: number): JSX.Element => {line}
)}