From c70f4c9250a39f479345362da4c7e2725e26897c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?=
<7854742+wang_rumeng@user.noreply.gitee.com>
Date: Fri, 29 Aug 2025 05:52:26 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=98=9F=E5=88=97=E5=BC=B9?=
=?UTF-8?q?=E7=AA=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/QueueBox/QueueNotification2.tsx | 143 ++++++++++-----------
components/pages/create-to-video2.tsx | 4 +-
2 files changed, 68 insertions(+), 79 deletions(-)
diff --git a/components/QueueBox/QueueNotification2.tsx b/components/QueueBox/QueueNotification2.tsx
index 0dd27f0..e08bcbb 100644
--- a/components/QueueBox/QueueNotification2.tsx
+++ b/components/QueueBox/QueueNotification2.tsx
@@ -100,66 +100,73 @@ export const showQueueNotification = (
status: string,
onCancel: () => void
) => {
- notification.open({
- message: null,
- description: (
-
- {/* AI导演工作室场景 */}
-
-
- {/* 队列信息 */}
-
- 🎬
- {status === 'process' ? `Your work is being produced. Please wait until it is completed before creating a new work.` : `Your work is waiting for production at the ${position} position`}
-
-
- {/* 预计等待时间 */}
-
- {status !== 'process' && `Estimated waiting time: about ${estimatedMinutes} minutes`}
-
-
- {/* 取消按钮 */}
-
{
- onCancel?.();
- notification.destroy();
- }}
- style={{
- color: 'rgb(250 173 20 / 90%)',
- background: 'transparent',
- border: 'none',
- cursor: 'pointer',
- padding: 0,
- fontSize: '12px',
- fontWeight: 500,
- textDecoration: 'underline',
- textUnderlineOffset: '2px',
- textDecorationColor: 'rgb(250 173 20 / 60%)',
- transition: 'all 0.2s ease',
- }}
- data-alt="cancel-queue-button"
- >
- Cancel queue →
-
+ const notificationKey = 'queueNotification';
+
+ // 创建或更新通知内容
+ const notificationContent = (
+
+ {/* AI导演工作室场景 */}
+
- ),
+
+ {/* 队列信息 */}
+
+ 🎬
+ {status === 'process' ? `Your work is being produced. Please wait until it is completed before creating a new work.` : `Your work is waiting for production at the ${position} position`}
+
+
+ {/* 预计等待时间 */}
+
+ {status !== 'process' && `Estimated waiting time: about ${estimatedMinutes} minutes`}
+
+
+ {/* 取消按钮 */}
+
{
+ onCancel?.();
+ notification.destroy(notificationKey);
+ }}
+ style={{
+ color: 'rgb(250 173 20 / 90%)',
+ background: 'transparent',
+ border: 'none',
+ cursor: 'pointer',
+ padding: 0,
+ fontSize: '12px',
+ fontWeight: 500,
+ textDecoration: 'underline',
+ textUnderlineOffset: '2px',
+ textDecorationColor: 'rgb(250 173 20 / 60%)',
+ transition: 'all 0.2s ease',
+ }}
+ data-alt="cancel-queue-button"
+ >
+ Cancel queue →
+
+
+ );
+
+ // 打开或更新通知
+ notification.open({
+ key: notificationKey,
+ message: null,
+ description: notificationContent,
duration: 0,
placement: 'topRight',
style: {
@@ -167,23 +174,7 @@ export const showQueueNotification = (
border: '1px solid rgba(246, 178, 102, 0.2)',
},
className: 'director-studio-notification',
- closeIcon: (
-
-
-
-
-
- ),
+ closeIcon: null,
});
};
diff --git a/components/pages/create-to-video2.tsx b/components/pages/create-to-video2.tsx
index 202301c..990e1a7 100644
--- a/components/pages/create-to-video2.tsx
+++ b/components/pages/create-to-video2.tsx
@@ -106,9 +106,7 @@ export default function CreateToVideo2() {
initial={{ opacity: 0, y: -10 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.4 }}
- className="flex items-center gap-2 rounded-full
- bg-white/10 border border-white/20
- px-3 py-1 backdrop-blur-md shadow-[0_0_8px_rgba(255,255,255,0.3)]"
+ className="flex items-center"
>
{/* 进行中 脉冲小圆点 */}
{status === 'pending' && (