From 7cb6eabfd0da301586a47ebd9c4cf7f4d40df7c0 Mon Sep 17 00:00:00 2001 From: chanx <1243304602@qq.com> Date: Mon, 24 Nov 2025 19:05:46 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9AModify=20the=20style=20of=20your=20?= =?UTF-8?q?personal=20center?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../originui/select-with-search.tsx | 6 +- .../components/similarity-slider/index.tsx | 2 +- .../components/slider-input-form-field.tsx | 2 +- web/src/components/ui/input.tsx | 6 +- web/src/components/ui/modal/modal.tsx | 2 +- .../pages/user-setting/data-source/index.tsx | 54 ++---- .../user-setting/mcp/edit-mcp-dialog.tsx | 165 ++++++++++++------ web/src/pages/user-setting/mcp/tool-card.tsx | 2 +- .../components/system-setting.tsx | 2 +- 9 files changed, 135 insertions(+), 106 deletions(-) diff --git a/web/src/components/originui/select-with-search.tsx b/web/src/components/originui/select-with-search.tsx index 4b87792d7..3434ba36b 100644 --- a/web/src/components/originui/select-with-search.tsx +++ b/web/src/components/originui/select-with-search.tsx @@ -219,7 +219,11 @@ export const SelectWithSearch = forwardRef< value={group.value} disabled={group.disabled} onSelect={handleSelect} - className="min-h-10" + className={ + value === group.value + ? 'bg-bg-card min-h-10' + : 'min-h-10' + } > {group.label} diff --git a/web/src/components/similarity-slider/index.tsx b/web/src/components/similarity-slider/index.tsx index 73666b504..d4c07e4d3 100644 --- a/web/src/components/similarity-slider/index.tsx +++ b/web/src/components/similarity-slider/index.tsx @@ -159,7 +159,7 @@ export function SimilaritySliderFormField({ ( className, )} style={{ - paddingLeft: !!prefix ? `${prefixWidth}px` : '', + paddingLeft: !!prefix && prefixWidth ? `${prefixWidth}px` : '', paddingRight: isPasswordInput ? '40px' : !!suffix @@ -144,7 +144,9 @@ export interface ExpandedInputProps extends InputProps {} const ExpandedInput = Input; const SearchInput = (props: InputProps) => { - return } />; + return ( + } /> + ); }; type Value = string | readonly string[] | number | undefined; diff --git a/web/src/components/ui/modal/modal.tsx b/web/src/components/ui/modal/modal.tsx index c40e5f90b..13de06cf8 100644 --- a/web/src/components/ui/modal/modal.tsx +++ b/web/src/components/ui/modal/modal.tsx @@ -200,7 +200,7 @@ const Modal: ModalType = ({ - } - > -
- {nextTools?.map((x) => ( - - ))} -
- - - + // + // + // + // {id ? t('mcp.editMCP') : t('mcp.addMCP')} + // + // + // + // + // + // {nextTools?.length || 0} {t('mcp.toolsAvailable')} + // + // } + // open={collapseOpen} + // onOpenChange={setCollapseOpen} + // rightContent={ + // + // } + // > + //
+ // {nextTools?.map((x) => ( + // + // ))} + //
+ //
+ //
+ //
+ // + // + // + // + // + // {t('common.save')} + // + // + //
+ //
+ @@ -172,7 +189,47 @@ export function EditMcpDialog({ {t('common.save')} - - + } + > + + + + + {nextTools?.length || 0} {t('mcp.toolsAvailable')} + + } + open={collapseOpen} + onOpenChange={setCollapseOpen} + rightContent={ + + } + > +
+ {nextTools?.map((x) => ( + + ))} +
+
+
+
+
); } diff --git a/web/src/pages/user-setting/mcp/tool-card.tsx b/web/src/pages/user-setting/mcp/tool-card.tsx index 123b4a611..fa82446db 100644 --- a/web/src/pages/user-setting/mcp/tool-card.tsx +++ b/web/src/pages/user-setting/mcp/tool-card.tsx @@ -7,7 +7,7 @@ export type McpToolCardProps = { export function McpToolCard({ data }: McpToolCardProps) { return (
-

{data.name}

+
{data.name}
{data.description}
diff --git a/web/src/pages/user-setting/setting-model/components/system-setting.tsx b/web/src/pages/user-setting/setting-model/components/system-setting.tsx index 97906a421..398804fcd 100644 --- a/web/src/pages/user-setting/setting-model/components/system-setting.tsx +++ b/web/src/pages/user-setting/setting-model/components/system-setting.tsx @@ -139,7 +139,7 @@ const SystemSetting = ({ onOk, loading }: IProps) => { }) => { return (
-