diff --git a/src/frontend/src/alerts/error/index.tsx b/src/frontend/src/alerts/error/index.tsx index 31980dc6b..93f30484b 100644 --- a/src/frontend/src/alerts/error/index.tsx +++ b/src/frontend/src/alerts/error/index.tsx @@ -39,19 +39,19 @@ export default function ErrorAlert({ removeAlert(id); }, 500); }} - className="mt-6 w-96 cursor-pointer rounded-md bg-error-background p-4 shadow-xl" + className="error-build-message" >
-
-

+

{title}

{list.length !== 0 ? ( -
-
    +
    +
      {list.map((item, index) => (
    • {item}
    • ))} diff --git a/src/frontend/src/alerts/success/index.tsx b/src/frontend/src/alerts/success/index.tsx index 88fc79962..e943feb8c 100644 --- a/src/frontend/src/alerts/success/index.tsx +++ b/src/frontend/src/alerts/success/index.tsx @@ -34,17 +34,17 @@ export default function SuccessAlert({ setShow(false); removeAlert(id); }} - className="mt-6 w-96 rounded-md bg-success-background p-4 shadow-xl" + className="success-alert" >
      -

      +

      {title}

      diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index 84398be78..37b26ab1c 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -351,4 +351,40 @@ The cursor: default; property value restores the browser's default cursor style .generic-node-desc-text { @apply w-full px-5 pb-3 text-sm text-muted-foreground } + + .alert-icon { + @apply h-5 w-5 + } /*error-build-message-circle*/ + .alert-font-size { + @apply text-sm font-medium + } + + .error-build-message { + @apply mt-6 w-96 cursor-pointer rounded-md bg-error-background p-4 shadow-xl + } + .error-build-message-circle { + @apply text-status-red alert-icon + } + .error-build-text { + @apply text-error-foreground + } + .error-build-foreground { + @apply error-build-text alert-font-size + } + .error-build-message-div { + @apply mt-2 text-sm error-build-text + } + .error-build-message-list { + @apply list-disc space-y-1 pl-5 + } + + .success-alert { + @apply mt-6 w-96 rounded-md bg-success-background p-4 shadow-xl + } + .success-alert-icon { + @apply alert-icon text-status-green + } + .success-alert-message { + @apply alert-font-size text-success-foreground + } } \ No newline at end of file