From 925d1c23aec53d145222e62607ff9fd8ca37223f Mon Sep 17 00:00:00 2001 From: JOYCEQL <1449239013@qq.com> Date: Fri, 3 Jan 2025 14:09:40 +0800 Subject: [PATCH] fix: ai polish theme --- .../components/shared/ai/AIPolishDialog.tsx | 86 ++++++++++++++++--- 1 file changed, 73 insertions(+), 13 deletions(-) diff --git a/apps/fronted/src/components/shared/ai/AIPolishDialog.tsx b/apps/fronted/src/components/shared/ai/AIPolishDialog.tsx index f57cab7..e6abdb3 100644 --- a/apps/fronted/src/components/shared/ai/AIPolishDialog.tsx +++ b/apps/fronted/src/components/shared/ai/AIPolishDialog.tsx @@ -12,6 +12,7 @@ import { } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { useAIConfigStore } from "@/store/useAIConfigStore"; +import { cn } from "@/lib/utils"; interface AIPolishDialogProps { open: boolean; @@ -128,7 +129,12 @@ export default function AIPolishDialog({ return ( { e.preventDefault(); }} @@ -140,11 +146,26 @@ export default function AIPolishDialog({ }} > - - + + AI 润色 - + {isPolishing ? "正在为您润色内容..." : "已经为您优化了内容,请查看效果"} @@ -154,14 +175,34 @@ export default function AIPolishDialog({
-
- +
+ 原始内容
-
+
@@ -169,17 +210,35 @@ export default function AIPolishDialog({
-
- +
+ 润色后的内容
@@ -201,9 +260,10 @@ export default function AIPolishDialog({ "重新生成" )} +