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()} /> : : <> -
- +
+