Fixes: Fixed some bugs #10703 (#11180)

### What problem does this PR solve?

Fixes: Fixed some bugs #10703

- Removed S3 upload from the file upload component
- Updated the dropdown menu style on the model provider page
- Updated some model provider icons
- Fixed other style issues

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-11-12 09:36:48 +08:00
committed by GitHub
parent 2c727a4a9c
commit 435479adb3
26 changed files with 190 additions and 302 deletions

View File

@@ -65,7 +65,7 @@ export const ModelProviderCard: FC<IModelCardProps> = ({
};
return (
<div className={`w-full rounded-lg border border-border-default`}>
<div className={`w-full rounded-lg border border-border-button`}>
{/* Header */}
<div className="flex h-16 items-center justify-between p-4 cursor-pointer transition-colors">
<div className="flex items-center space-x-3">
@@ -131,7 +131,7 @@ export const ModelProviderCard: FC<IModelCardProps> = ({
{item.llm.map((model) => (
<div
key={model.name}
className="flex items-center border-b border-border-default justify-between p-3 hover:bg-bg-card transition-colors"
className="flex items-center border-b-[0.5px] border-border-button justify-between p-3 hover:bg-bg-card transition-colors"
>
<div className="flex items-center space-x-3">
<span className="font-medium">

View File

@@ -156,7 +156,7 @@ const SystemSetting = ({ onOk, loading }: IProps) => {
)}
</label>
<SelectWithSearch
triggerClassName="w-3/4"
triggerClassName="w-3/4 flex items-center"
allowClear={id !== 'llm_id'}
value={value}
options={options}
@@ -175,7 +175,7 @@ const SystemSetting = ({ onOk, loading }: IProps) => {
{t('systemModelDescription')}
</div>
</div>
<div className="px-7 py-6 space-y-6 max-h-[70vh] overflow-y-auto border rounded-lg">
<div className="px-7 py-6 space-y-6 max-h-[70vh] overflow-y-auto border border-border-button rounded-lg">
{llmList.map((item) => (
<Items key={item.id} {...item} />
))}

View File

@@ -122,7 +122,7 @@ export const AvailableModels: FC<{
{filteredModels.map((model) => (
<div
key={model.name}
className=" border border-border-default rounded-lg p-3 hover:bg-bg-input transition-colors group"
className=" border border-border-button rounded-lg p-3 hover:bg-bg-input transition-colors group"
>
<div className="flex items-center space-x-3 mb-3">
<LlmIcon name={model.name} imgClass="h-8 w-8 text-text-primary" />

View File

@@ -11,7 +11,7 @@ export const UsedModel = ({
}) => {
const { factoryList, myLlmList: llmList, loading } = useSelectLlmList();
return (
<div className="flex flex-col w-full gap-4 mb-4">
<div className="flex flex-col w-full gap-5 mb-4">
<div className="text-text-primary text-2xl font-medium mb-2 mt-4">
{t('setting.addedModels')}
</div>