{
- const { theme = "system" } = useTheme();
-
return (
,
- info:
,
- warning:
,
- error:
,
- loading:
,
+ success: null,
+ info: null,
+ warning: null,
+ error: null,
+ loading: null,
+ }}
+ toastOptions={{
+ style: {
+ background: "#4a4a4a",
+ color: "#ffffff",
+ border: "none",
+ borderRadius: "12px",
+ fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
+ fontSize: "14px",
+ fontWeight: 400,
+ padding: "12px 20px",
+ textAlign: "center",
+ maxWidth: "320px",
+ minWidth:"300px",
+ justifyContent:"center"
+ },
}}
style={
{
- "--normal-bg": "var(--popover)",
- "--normal-text": "var(--popover-foreground)",
- "--normal-border": "var(--border)",
- "--border-radius": "var(--radius)",
+ "--normal-bg": "#4a4a4a",
+ "--normal-text": "#ffffff",
+ "--normal-border": "transparent",
+ "--border-radius": "12px",
} as React.CSSProperties
}
{...props}
diff --git a/frontend/src/components/workspace/input-box.tsx b/frontend/src/components/workspace/input-box.tsx
index e3e1cb95..7e174af6 100644
--- a/frontend/src/components/workspace/input-box.tsx
+++ b/frontend/src/components/workspace/input-box.tsx
@@ -430,10 +430,10 @@ export function InputBox({
handleSuggestionClick(suggestion)}
/>
))}
-
+ {/*
@@ -986,7 +986,7 @@ function SuggestionList({
)}
-
+ */}
);
}
diff --git a/frontend/src/core/i18n/locales/zh-CN.ts b/frontend/src/core/i18n/locales/zh-CN.ts
index 3be3a015..1fc6529a 100644
--- a/frontend/src/core/i18n/locales/zh-CN.ts
+++ b/frontend/src/core/i18n/locales/zh-CN.ts
@@ -102,36 +102,42 @@ export const zhCN: Translations = {
followupConfirmReplace: "替换并发送",
suggestions: [
{
- suggestion: "论文写作",
+ suggestion: "自媒体文案",
prompt:
"撰写一篇关于[主题]的学术论文,包含摘要、引言、正文和参考文献。",
icon: PenLineIcon,
- skill_id: "1",
+ skill_id: "432",
},
{
- suggestion: "报告生成",
+ suggestion: "需求文档",
prompt: "深入分析[主题],生成一份结构清晰的调研报告。",
icon: MicroscopeIcon,
- skill_id: "2",
+ skill_id: "521",
},
{
- suggestion: "策划文案",
+ suggestion: "使用指南",
prompt: "为[项目/活动]撰写一份完整的策划方案和宣传文案。",
icon: ShapesIcon,
- skill_id: "3",
+ skill_id: "410",
},
{
suggestion: "PPT生成",
prompt: "生成一个关于[主题]的PPT演示文稿大纲和内容。",
icon: GraduationCapIcon,
- skill_id: "4",
+ skill_id: "180",
},
{
- suggestion: "文档处理",
+ suggestion: "Excel数据分析",
prompt: "对[文档]进行阅读、总结、翻译或格式转换等处理。",
icon: CompassIcon,
skill_id: "5",
},
+ {
+ suggestion: "市场调研",
+ prompt: "对[文档]进行阅读、总结、翻译或格式转换等处理。",
+ icon: CompassIcon,
+ skill_id: "31",
+ },
],
suggestionsCreate: [
{
diff --git a/frontend/src/styles/globals.css b/frontend/src/styles/globals.css
index 593623c9..21e440d7 100644
--- a/frontend/src/styles/globals.css
+++ b/frontend/src/styles/globals.css
@@ -244,7 +244,7 @@
--muted: #1500331a;
--muted-foreground: oklch(0.556 0 0);
/* --accent: oklch(0.94 0.0098 87.47); */
- --accent: #1500331a;
+ --accent: #EAE9EB;
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0.0098 87.47);
@@ -453,3 +453,18 @@ p {
.cm-line {
font-size: calc(14px * var(--zoom-scale));
}
+
+/* Sonner Toast 居中样式 */
+[data-sonner-toaster] {
+ left: 50% !important;
+ transform: translateX(-50%);
+ display: flex !important;
+ flex-direction: column !important;
+ align-items: center !important;
+ justify-content: center;
+}
+
+[data-sonner-toast] {
+ margin: 0 auto;
+}
+