From abbf99e1dde249370233d468b1a224db2c66e7fd Mon Sep 17 00:00:00 2001 From: wsp Date: Wed, 18 Nov 2026 15:13:29 +0800 Subject: [PATCH] fix(settings): Align GenUI configuration styling Use the shared settings section surface and row spacing to keep the GenUI configuration consistent with other execution settings. --- .../settings/pages/ai/GenUILibrarySection.scss | 12 ------------ .../scenes/settings/pages/ai/GenUILibrarySection.tsx | 7 +++---- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 src/web-ui/src/app/scenes/settings/pages/ai/GenUILibrarySection.scss diff --git a/src/web-ui/src/app/scenes/settings/pages/ai/GenUILibrarySection.scss b/src/web-ui/src/app/scenes/settings/pages/ai/GenUILibrarySection.scss deleted file mode 100644 index 87b997470d..0000000000 --- a/src/web-ui/src/app/scenes/settings/pages/ai/GenUILibrarySection.scss +++ /dev/null @@ -1,12 +0,0 @@ -.gen-ui-library-settings-surface { - min-width: 0; - overflow: hidden; - border: 1px solid var(--openbitfun-color-border-default); - border-radius: var(--openbitfun-radius-lg); - background: var(--openbitfun-color-surface-panel); -} - -.gen-ui-library-selector { - padding-block: var(--openbitfun-space-5); - background: var(--openbitfun-color-surface-panel); -} diff --git a/src/web-ui/src/app/scenes/settings/pages/ai/GenUILibrarySection.tsx b/src/web-ui/src/app/scenes/settings/pages/ai/GenUILibrarySection.tsx index 845f573fc5..2314c47666 100644 --- a/src/web-ui/src/app/scenes/settings/pages/ai/GenUILibrarySection.tsx +++ b/src/web-ui/src/app/scenes/settings/pages/ai/GenUILibrarySection.tsx @@ -6,7 +6,6 @@ import { configAPI } from '@/infrastructure/api/service-api/ConfigAPI'; import { getActiveSurfaceScope, onSurfaceActivated } from '@/infrastructure/peer-device/deviceSurface'; import { useI18n } from '@/infrastructure/i18n'; import { genUILibraryProfiles } from '@/tools/generative-ui/genUILibraryProfiles'; -import './GenUILibrarySection.scss'; const path = 'ai.generative_ui_library'; export default function GenUILibrarySection() { @@ -52,13 +51,13 @@ export default function GenUILibrarySection() { const options = Object.entries(genUILibraryProfiles).map(([value, profile]) => ({ value, label: profile.label })); const known = ready && Object.prototype.hasOwnProperty.call(genUILibraryProfiles, loaded.value); if (ready && !known) options.push({ value: loaded.value, label: loaded.value }); - return + return {!ready ? error ? void load()} /> : : <> -
- +
+