Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix:去掉外链字体加载,统一字体设置

xiaoyao4263d22fc222c8
diff --git a/jiuwenswarm/channels/web/frontend/src/components/CronPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/CronPanel/index.tsx
index 0f0ba44694..6066ffd27c 100644
--- a/jiuwenswarm/channels/web/frontend/src/components/CronPanel/index.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/components/CronPanel/index.tsx
@@ -619,7 +619,7 @@ export default function CronPanel({ sessionId }: CronPanelProps) {
>
<svg width="16" height="16" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="18" fill="transparent" stroke="currentColor" strokeWidth="2" />
- <text x="20" y="22" fontFamily="Arial, sans-serif" fontSize="24" fill="currentColor" textAnchor="middle" dominantBaseline="middle">?</text>
+ <text x="20" y="22" fontSize="24" fill="currentColor" textAnchor="middle" dominantBaseline="middle">?</text>
</svg>
</span>
</div>
@@ -766,7 +766,7 @@ export default function CronPanel({ sessionId }: CronPanelProps) {
>
<svg width="16" height="16" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<circle cx="20" cy="20" r="18" fill="transparent" stroke="currentColor" strokeWidth="2" />
- <text x="20" y="22" fontFamily="Arial, sans-serif" fontSize="24" fill="currentColor" textAnchor="middle" dominantBaseline="middle">?</text>
+ <text x="20" y="22" fontSize="24" fill="currentColor" textAnchor="middle" dominantBaseline="middle">?</text>
</svg>
</span>
</div>
diff --git a/jiuwenswarm/channels/web/frontend/src/components/HarnessPackagePanel/HarnessPackagePanel.css b/jiuwenswarm/channels/web/frontend/src/components/HarnessPackagePanel/HarnessPackagePanel.css
index eb60c56a44..202bd8ab75 100644
--- a/jiuwenswarm/channels/web/frontend/src/components/HarnessPackagePanel/HarnessPackagePanel.css
+++ b/jiuwenswarm/channels/web/frontend/src/components/HarnessPackagePanel/HarnessPackagePanel.css
@@ -133,7 +133,7 @@
}
.harness-package-panel__info-value--mono {
- font-family: monospace;
+ font-family: var(--mono);
font-size: 12px;
}
@@ -669,4 +669,4 @@
flex: 1;
overflow: auto;
padding: 8px;
-}
\ No newline at end of file
+}
diff --git a/jiuwenswarm/channels/web/frontend/src/components/SessionSidebar/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/SessionSidebar/index.tsx
index fc10516130..7f703f3485 100644
--- a/jiuwenswarm/channels/web/frontend/src/components/SessionSidebar/index.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/components/SessionSidebar/index.tsx
@@ -162,7 +162,6 @@ function Tooltip({
y="22"
fill="#FFFFFF"
fontSize="14"
- fontFamily="HarmonyOS Sans SC, PingFang SC, sans-serif"
fontWeight="400"
>
{text}
diff --git a/jiuwenswarm/channels/web/frontend/src/features/shareImageExport.css b/jiuwenswarm/channels/web/frontend/src/features/shareImageExport.css
index 1da7f6bc6c..0c22c194e3 100644
--- a/jiuwenswarm/channels/web/frontend/src/features/shareImageExport.css
+++ b/jiuwenswarm/channels/web/frontend/src/features/shareImageExport.css
@@ -29,7 +29,7 @@
background: #f5f7f9;
color: var(--text);
padding: 26px 18px 28px;
- font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
+ font-family: var(--font-body);
}
.share-image-document *,
diff --git a/jiuwenswarm/channels/web/frontend/src/index.css b/jiuwenswarm/channels/web/frontend/src/index.css
index 02f74ce9bb..be4d36c549 100644
--- a/jiuwenswarm/channels/web/frontend/src/index.css
+++ b/jiuwenswarm/channels/web/frontend/src/index.css
@@ -1,28 +1,3 @@
-@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");
-
-/* HarmonyOS Sans SC - 鸿蒙字体,中英文兼顾 */
-@font-face {
- font-family: 'HarmonyOS Sans SC';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url('https://cdn.jsdelivr.net/npm/@ayahub/[email protected]/fonts/HarmonyOS_Sans_SC_Regular.woff2') format('woff2');
-}
-@font-face {
- font-family: 'HarmonyOS Sans SC';
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: url('https://cdn.jsdelivr.net/npm/@ayahub/[email protected]/fonts/HarmonyOS_Sans_SC_Medium.woff2') format('woff2');
-}
-@font-face {
- font-family: 'HarmonyOS Sans SC';
- font-style: normal;
- font-weight: 700;
- font-display: swap;
- src: url('https://cdn.jsdelivr.net/npm/@ayahub/[email protected]/fonts/HarmonyOS_Sans_SC_Bold.woff2') format('woff2');
-}
-
@tailwind base;
@tailwind components;
@tailwind utilities;
@@ -112,10 +87,10 @@
/* Grid */
--grid-line: rgba(255, 255, 255, 0.04);
- /* Typography - HarmonyOS Sans SC 鸿蒙字体,JetBrains Mono 等宽 */
- --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
- --font-body: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
- --font-display: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
+ /* Typography */
+ --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
+ --font-body: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
+ --font-display: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
/* Shadows - Richer with subtle color */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
@@ -799,10 +774,6 @@ select {
background: var(--bg-muted);
}
- .chat-bubble.assistant.markdown {
- padding: 0 14px;
- }
-
:root[data-theme="light"] .chat-bubble.assistant {
border-color: var(--border);
background: #ffffff;