chore: fix dataset problems

This commit is contained in:
Joel 2026-01-09 14:26:18 +08:00
parent ea1704d211
commit bfe98009fd
2 changed files with 3 additions and 2 deletions

View File

@ -190,7 +190,7 @@ const AgentTools: FC = () => {
</div> </div>
)} )}
> >
<div className={cn('grid grid-cols-1 flex-wrap items-center justify-between gap-1 2xl:grid-cols-2', readonly && 'grid-cols-2')}> <div className={cn('grid grid-cols-1 items-center gap-1 2xl:grid-cols-2', readonly && 'cursor-not-allowed grid-cols-2')}>
{tools.map((item: AgentTool & { icon: any, collection?: Collection }, index) => ( {tools.map((item: AgentTool & { icon: any, collection?: Collection }, index) => (
<div <div
key={index} key={index}

View File

@ -276,7 +276,7 @@ const DatasetConfig: FC<Props> = ({ readonly, hideMetadataFilter }) => {
> >
{hasData {hasData
? ( ? (
<div className={cn('mt-1 flex flex-wrap justify-between px-3 pb-3', readonly && 'grid-cols-2 gap-1')}> <div className={cn('mt-1 grid grid-cols-1 px-3 pb-3', readonly && 'grid-cols-2 gap-1')}>
{formattedDataset.map(item => ( {formattedDataset.map(item => (
<CardItem <CardItem
key={item.id} key={item.id}
@ -284,6 +284,7 @@ const DatasetConfig: FC<Props> = ({ readonly, hideMetadataFilter }) => {
onRemove={onRemove} onRemove={onRemove}
onSave={handleSave} onSave={handleSave}
editable={item.editable} editable={item.editable}
readonly={readonly}
/> />
))} ))}
</div> </div>