From 9f0ee5c145f5d17f677b4b062cfda81d4b757eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=9E=E6=B3=95=E6=93=8D=E4=BD=9C?= Date: Fri, 27 Feb 2026 17:28:41 +0800 Subject: [PATCH] fix: the action button of structure output modal should align right (#32700) --- .../json-schema-config.tsx | 20 +++++++++++++------ web/eslint-suppressions.json | 5 ----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx index b4dac4b58e..a19dccad78 100644 --- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx +++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx @@ -1,12 +1,12 @@ import type { FC } from 'react' import type { SchemaRoot } from '../../types' -import { RiBracesLine, RiCloseLine, RiTimelineView } from '@remixicon/react' import { useCallback, useState } from 'react' import { useTranslation } from 'react-i18next' import Button from '@/app/components/base/button' import Divider from '@/app/components/base/divider' import Toast from '@/app/components/base/toast' import { JSON_SCHEMA_MAX_DEPTH } from '@/config' +import { cn } from '@/utils/classnames' import { SegmentedControl } from '../../../../../base/segmented-control' import { Type } from '../../types' import { @@ -35,9 +35,17 @@ enum SchemaView { JsonSchema = 'jsonSchema', } +const TimelineViewIcon: FC<{ className?: string }> = ({ className }) => { + return +} + +const BracesIcon: FC<{ className?: string }> = ({ className }) => { + return +} + const VIEW_TABS = [ - { Icon: RiTimelineView, text: 'Visual Editor', value: SchemaView.VisualEditor }, - { Icon: RiBracesLine, text: 'JSON Schema', value: SchemaView.JsonSchema }, + { Icon: TimelineViewIcon, text: 'Visual Editor', value: SchemaView.VisualEditor }, + { Icon: BracesIcon, text: 'JSON Schema', value: SchemaView.JsonSchema }, ] const DEFAULT_SCHEMA: SchemaRoot = { @@ -203,11 +211,11 @@ const JsonSchemaConfig: FC = ({
{/* Header */}
-
+
{t('nodes.llm.jsonSchema.title', { ns: 'workflow' })}
- +
{/* Content */} @@ -249,7 +257,7 @@ const JsonSchemaConfig: FC = ({ {validationError && }
{/* Footer */} -
+