diff --git a/web/app/components/base/toast/index.tsx b/web/app/components/base/toast/index.tsx index 7c53acdc05..5c8386ac27 100644 --- a/web/app/components/base/toast/index.tsx +++ b/web/app/components/base/toast/index.tsx @@ -50,10 +50,10 @@ const Toast = ({ 'right-0', )}>
@@ -70,9 +70,11 @@ const Toast = ({
}
- - - + {close + && ( + + ) + } } diff --git a/web/app/components/workflow/update-dsl-modal.tsx b/web/app/components/workflow/update-dsl-modal.tsx index a750ebe21e..e815223d59 100644 --- a/web/app/components/workflow/update-dsl-modal.tsx +++ b/web/app/components/workflow/update-dsl-modal.tsx @@ -38,8 +38,8 @@ import { ToastContext } from '@/app/components/base/toast' import { useEventEmitterContextContext } from '@/context/event-emitter' import { useStore as useAppStore } from '@/app/components/app/store' import { FILE_EXTS } from '@/app/components/base/prompt-editor/constants' -import { useStore as usePluginDependencyStore } from '@/app/components/workflow/plugin-dependency/store' import PluginDependency from '@/app/components/workflow/plugin-dependency' +import { useStore as usePluginDependencyStore } from '@/app/components/workflow/plugin-dependency/store' type UpdateDSLModalProps = { onCancel: () => void @@ -229,7 +229,7 @@ const UpdateDSLModal = ({
-
+
diff --git a/web/tailwind-common-config.ts b/web/tailwind-common-config.ts index 41f36bc17a..2c6ae1fc33 100644 --- a/web/tailwind-common-config.ts +++ b/web/tailwind-common-config.ts @@ -89,6 +89,10 @@ const config = { 'workflow-process-bg': 'var(--color-workflow-process-bg)', 'marketplace-divider-bg': 'var(--color-marketplace-divider-bg)', 'marketplace-plugin-empty': 'var(--color-marketplace-plugin-empty)', + 'toast-success-bg': 'var(--color-toast-success-bg)', + 'toast-warning-bg': 'var(--color-toast-warning-bg)', + 'toast-error-bg': 'var(--color-toast-error-bg)', + 'toast-info-bg': 'var(--color-toast-info-bg)', }, animation: { 'spin-slow': 'spin 2s linear infinite', diff --git a/web/themes/manual-dark.css b/web/themes/manual-dark.css index 4e48cdbb16..96b18914bb 100644 --- a/web/themes/manual-dark.css +++ b/web/themes/manual-dark.css @@ -1,7 +1,47 @@ html[data-theme="dark"] { - --color-chatbot-bg: linear-gradient(180deg, rgba(34, 34, 37, 0.90) 0%, rgba(29, 29, 32, 0.90) 90.48%); - --color-chat-bubble-bg: linear-gradient(180deg, rgba(200, 206, 218, 0.08) 0%, rgba(200, 206, 218, 0.02) 100%); - --color-workflow-process-bg: linear-gradient(90deg, rgba(24, 24, 27, 0.25) 0%, rgba(24, 24, 27, 0.04) 100%); - --color-marketplace-divider-bg: linear-gradient(90deg, rgba(200, 206, 218, 0.14) 0%, rgba(0, 0, 0, 0) 100%); - --color-marketplace-plugin-empty: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #222225 100%); -} \ No newline at end of file + --color-chatbot-bg: linear-gradient( + 180deg, + rgba(34, 34, 37, 0.9) 0%, + rgba(29, 29, 32, 0.9) 90.48% + ); + --color-chat-bubble-bg: linear-gradient( + 180deg, + rgba(200, 206, 218, 0.08) 0%, + rgba(200, 206, 218, 0.02) 100% + ); + --color-workflow-process-bg: linear-gradient( + 90deg, + rgba(24, 24, 27, 0.25) 0%, + rgba(24, 24, 27, 0.04) 100% + ); + --color-marketplace-divider-bg: linear-gradient( + 90deg, + rgba(200, 206, 218, 0.14) 0%, + rgba(0, 0, 0, 0) 100% + ); + --color-marketplace-plugin-empty: linear-gradient( + 180deg, + rgba(0, 0, 0, 0) 0%, + #222225 100% + ); + --color-toast-success-bg: linear-gradient( + 92deg, + rgba(23, 178, 106, 0.3) 0%, + rgba(0, 0, 0, 0) 100% + ); + --color-toast-warning-bg: linear-gradient( + 92deg, + rgba(247, 144, 9, 0.3) 0%, + rgba(0, 0, 0, 0) 100% + ); + --color-toast-error-bg: linear-gradient( + 92deg, + rgba(240, 68, 56, 0.3) 0%, + rgba(0, 0, 0, 0) 100% + ); + --color-toast-info-bg: linear-gradient( + 92deg, + rgba(11, 165, 236, 0.3) 0%, + rgba(0, 0, 0, 0) 100% + ); +} diff --git a/web/themes/manual-light.css b/web/themes/manual-light.css index e99ba4dd0a..3a0a09303c 100644 --- a/web/themes/manual-light.css +++ b/web/themes/manual-light.css @@ -1,7 +1,47 @@ html[data-theme="light"] { - --color-chatbot-bg: linear-gradient(180deg, rgba(249, 250, 251, 0.90) 0%, rgba(242, 244, 247, 0.90) 90.48%); - --color-chat-bubble-bg: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.60) 100%); - --color-workflow-process-bg: linear-gradient(90deg, rgba(200, 206, 218, 0.20) 0%, rgba(200, 206, 218, 0.04) 100%); - --color-marketplace-divider-bg: linear-gradient(90deg, rgba(16, 24, 40, 0.08) 0%, rgba(255, 255, 255, 0) 100%); - --color-marketplace-plugin-empty: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FCFCFD 100%); -} \ No newline at end of file + --color-chatbot-bg: linear-gradient( + 180deg, + rgba(249, 250, 251, 0.9) 0%, + rgba(242, 244, 247, 0.9) 90.48% + ); + --color-chat-bubble-bg: linear-gradient( + 180deg, + #fff 0%, + rgba(255, 255, 255, 0.6) 100% + ); + --color-workflow-process-bg: linear-gradient( + 90deg, + rgba(200, 206, 218, 0.2) 0%, + rgba(200, 206, 218, 0.04) 100% + ); + --color-marketplace-divider-bg: linear-gradient( + 90deg, + rgba(16, 24, 40, 0.08) 0%, + rgba(255, 255, 255, 0) 100% + ); + --color-marketplace-plugin-empty: linear-gradient( + 180deg, + rgba(255, 255, 255, 0) 0%, + #fcfcfd 100% + ); + --color-toast-success-bg: linear-gradient( + 92deg, + rgba(23, 178, 106, 0.25) 0%, + rgba(255, 255, 255, 0) 100% + ); + --color-toast-warning-bg: linear-gradient( + 92deg, + rgba(247, 144, 9, 0.25) 0%, + rgba(255, 255, 255, 0) 100% + ); + --color-toast-error-bg: linear-gradient( + 92deg, + rgba(240, 68, 56, 0.25) 0%, + rgba(255, 255, 255, 0) 100% + ); + --color-toast-info-bg: linear-gradient( + 92deg, + rgba(11, 165, 236, 0.25) 0%, + rgba(255, 255, 255, 0) 100% + ); +}