diff --git a/src/frontend/src/modals/codeAreaModal/index.tsx b/src/frontend/src/modals/codeAreaModal/index.tsx index e68592efa..5ad04b0ae 100644 --- a/src/frontend/src/modals/codeAreaModal/index.tsx +++ b/src/frontend/src/modals/codeAreaModal/index.tsx @@ -191,11 +191,9 @@ export default function CodeAreaModal({ (error?.detail?.error !== undefined ? "h-2/6" : "h-0") } > -
-

- {error?.detail?.error} -

-
+
+

{error?.detail?.error}

+
{error?.detail?.traceback} diff --git a/src/frontend/src/style/index.css b/src/frontend/src/style/index.css index 522162e3b..9a35b45aa 100644 --- a/src/frontend/src/style/index.css +++ b/src/frontend/src/style/index.css @@ -32,6 +32,7 @@ --error-background: #fef2f2; --error-foreground: #991b1b; + --error: #991b1b; --success-background: #f0fdf4; --success-foreground: #14532d; @@ -111,6 +112,7 @@ --error-foreground: #fef2f2; --error-background: #450a0a; + --error: #991b1b; --info-foreground: #eff6ff; --info-background: #172554; diff --git a/src/frontend/tailwind.config.js b/src/frontend/tailwind.config.js index a97e4cec0..02ba4460b 100644 --- a/src/frontend/tailwind.config.js +++ b/src/frontend/tailwind.config.js @@ -64,8 +64,11 @@ module.exports = { "dark-blue": "var(--dark-blue)", "dark-gray": "var(--dark-gray)", "dark-red": "var(--dark-red)", - "error-background": "var(--error-background)", - "error-foreground": "var(--error-foreground)", + error: { + DEFAULT: "var(--error)", + background: "var(--error-background)", + foreground: "var(--error-foreground)", + }, "high-dark-gray": "var(--high-dark-gray)", "high-indigo": "var(--high-indigo)", "high-light-gray": "var(--high-light-gray)",