From cca3d8eb41ac2be356d921d24bdf181b892df1ea Mon Sep 17 00:00:00 2001 From: fengxiangdebaozi <10845145+fengxiangdebaozi@user.noreply.gitee.com> Date: Thu, 4 Jun 2026 20:49:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MessageBubble.tsx | 8 +-- .../components/markdown-components.tsx | 67 ++++++++++++++----- .../pages/RoundtablePlanningPage.tsx | 59 ++++++++-------- .../styles/roundtable-planning.css | 32 +++++++-- frontend-web/src/styles/globals.css | 5 +- 5 files changed, 116 insertions(+), 55 deletions(-) diff --git a/frontend-web/src/roundtable-planning/components/MessageBubble.tsx b/frontend-web/src/roundtable-planning/components/MessageBubble.tsx index fd5fef4b..00470de6 100644 --- a/frontend-web/src/roundtable-planning/components/MessageBubble.tsx +++ b/frontend-web/src/roundtable-planning/components/MessageBubble.tsx @@ -119,16 +119,16 @@ export const sharedMarkdownComponents = {
  • {children}
  • ), h1: ({ children }: { children?: React.ReactNode }) => ( -

    {children}

    +

    {children}

    ), h2: ({ children }: { children?: React.ReactNode }) => ( -

    {children}

    +

    {children}

    ), h3: ({ children }: { children?: React.ReactNode }) => ( -

    {children}

    +

    {children}

    ), h4: ({ children }: { children?: React.ReactNode }) => ( -

    {children}

    +

    {children}

    ), strong: ({ children }: { children?: React.ReactNode }) => ( {children} diff --git a/frontend-web/src/roundtable-planning/components/markdown-components.tsx b/frontend-web/src/roundtable-planning/components/markdown-components.tsx index ca534ba6..81f6adab 100644 --- a/frontend-web/src/roundtable-planning/components/markdown-components.tsx +++ b/frontend-web/src/roundtable-planning/components/markdown-components.tsx @@ -1,44 +1,75 @@ /** - * 圆桌 Step 3 报告里 `react-markdown` 的紧凑渲染组件集(小字号、卡片内排版)。 + * 圆桌 Step 3 报告里 `react-markdown` 的渲染组件集(卡片内排版)。 * 抽到独立文件供 `HighFidelityReport` 与 `Step3ReportMode` 共用,避免两者互相 import * 形成循环依赖。 */ export const markdownComponents = { - p: ({ children }: any) =>

    {children}

    , - ul: ({ children }: any) => , - ol: ({ children }: any) =>
      {children}
    , - li: ({ children }: any) =>
  • {children}
  • , - h1: ({ children }: any) =>

    {children}

    , - h2: ({ children }: any) =>

    {children}

    , - h3: ({ children }: any) =>

    {children}

    , - h4: ({ children }: any) =>

    {children}

    , - strong: ({ children }: any) => {children}, + p: ({ children }: any) => ( +

    {children}

    + ), + ul: ({ children }: any) => ( + + ), + ol: ({ children }: any) => ( +
      {children}
    + ), + li: ({ children }: any) =>
  • {children}
  • , + h1: ({ children }: any) => ( +

    {children}

    + ), + h2: ({ children }: any) => ( +

    {children}

    + ), + h3: ({ children }: any) => ( +

    {children}

    + ), + h4: ({ children }: any) => ( +

    {children}

    + ), + strong: ({ children }: any) => ( + {children} + ), em: ({ children }: any) => {children}, code: ({ children, className }: any) => { const isBlock = /language-/.test(className ?? ""); if (isBlock) { return ( -
    +        
               {children}
             
    ); } return ( - {children} + + {children} + ); }, blockquote: ({ children }: any) => ( -
    {children}
    +
    + {children} +
    ), a: ({ children, href }: any) => ( - + {children} ), - table: ({ children }: any) => {children}
    , - th: ({ children }: any) => ( - {children} + table: ({ children }: any) => ( + {children}
    + ), + th: ({ children }: any) => ( + + {children} + + ), + td: ({ children }: any) => ( + {children} ), - td: ({ children }: any) => {children}, hr: () =>
    , }; diff --git a/frontend-web/src/roundtable-planning/pages/RoundtablePlanningPage.tsx b/frontend-web/src/roundtable-planning/pages/RoundtablePlanningPage.tsx index ab993096..e2582397 100644 --- a/frontend-web/src/roundtable-planning/pages/RoundtablePlanningPage.tsx +++ b/frontend-web/src/roundtable-planning/pages/RoundtablePlanningPage.tsx @@ -1528,17 +1528,17 @@ function HumanParticipationCard() {

    人工参与

    -
    -
    - - 用户 +
    +
    + + 用户
    -
    +
    - 在线 + 在线
    @@ -1808,7 +1808,7 @@ function RoleRow({ return (
    -
    - -
    - {role.name} +
    + +
    + + {role.name} + {role.type === "agent" && ( - AI 智能体 + AI 智能体 )}
    -
    +
    {isOngoing ? ( @@ -1845,7 +1847,7 @@ function RoleRow({ )} 澄清记录
    -
    -
    +
    +
    {timelineEntries.map((entry) => ( -
    -
    -
    -
    - - {entry.time} - -

    +
    +
    +
    + + {entry.time} + +
    +

    {entry.title}

    +

    + {entry.desc} +

    -

    - {entry.desc} -

    ))} diff --git a/frontend-web/src/roundtable-planning/styles/roundtable-planning.css b/frontend-web/src/roundtable-planning/styles/roundtable-planning.css index b16247a0..a248d43a 100644 --- a/frontend-web/src/roundtable-planning/styles/roundtable-planning.css +++ b/frontend-web/src/roundtable-planning/styles/roundtable-planning.css @@ -10,12 +10,13 @@ --rt-primary-active: var(--brand-950, #a8071a); --rt-primary-soft: var(--brand-200, #feeded); --rt-page-bg: #fef6f6; - /* 消息列表正文字号 —— 与右侧沙箱 CodeEditor / Markdown 预览的 text-sm 对齐 */ - --roundtable-chat-font-size: var(--text-sm, 0.875rem); - --roundtable-chat-meta-font-size: var(--text-xs, 0.75rem); + /* 圆桌全页最小可读字号(含 Step 3 方案展示 / 结果绘制) */ + --roundtable-chat-font-size: 16px; + --roundtable-chat-meta-font-size: 16px; + font-size: 16px; } -/* 会商对话区:气泡正文、步骤卡、Markdown 块统一继承 */ +/* 会商对话区:气泡正文、步骤卡、Markdown 块 */ .roundtable-chat-message { font-size: var(--roundtable-chat-font-size); line-height: 1.625; @@ -23,6 +24,29 @@ .roundtable-chat-meta { font-size: var(--roundtable-chat-meta-font-size); + line-height: 1.5; +} + +/* + * 抬升页内显式写死的小字号类(text-xs / text-sm / text-[10–14px] / calc), + * 避免 Step 3、侧栏、按钮条等遗漏逐文件改 class。text-base 及以上标题保持不变。 + */ +.roundtable-planning :where(.text-xs, .text-sm) { + font-size: 16px; +} + +.roundtable-planning :where( + [class*="text-[9px"], + [class*="text-[10px"], + [class*="text-[10.5px"], + [class*="text-[11px"], + [class*="text-[11.5px"], + [class*="text-[12px"], + [class*="text-[13px"], + [class*="text-[14px"], + [class*="text-[calc"] +):not(.w-5) { + font-size: 16px; } .roundtable-planning ::-webkit-scrollbar-thumb { diff --git a/frontend-web/src/styles/globals.css b/frontend-web/src/styles/globals.css index cb36f5ea..947e290a 100644 --- a/frontend-web/src/styles/globals.css +++ b/frontend-web/src/styles/globals.css @@ -72,8 +72,9 @@ @theme { --font-sans: - ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", - "Segoe UI Symbol", "Noto Color Emoji"; + "Noto Sans S Chinese", "Noto Sans SC", "Source Han Sans SC", "思源黑体", + "Microsoft YaHei", "PingFang SC", ui-sans-serif, system-ui, sans-serif, + "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --animate-fade-in: fade-in 1.1s; @keyframes fade-in {