refactor: playground rerank layout

This commit is contained in:
jialin
2024-11-22 10:00:34 +08:00
parent 8e7fa486db
commit 1e3957bdd5
12 changed files with 218 additions and 135 deletions
@@ -58,17 +58,6 @@ const InputList: React.FC<InputListProps> = forwardRef(
return (
<div className="input-list">
{/* {textList.length === 0 && (
<Button
block
onClick={handleAdd}
type="text"
style={{ backgroundColor: 'var(--ant-color-fill-secondary)' }}
>
<PlusOutlined />
Add Text
</Button>
)} */}
{textList.map((text, index) => {
return (
<div key={text.uid} className="input-item">
@@ -92,18 +81,6 @@ const InputList: React.FC<InputListProps> = forwardRef(
onClick={() => handleDelete(text)}
></Button>
</Tooltip>
{/* {index === textList.length - 1 && (
<Tooltip
title={intl.formatMessage({ id: 'common.button.add' })}
>
<Button
size="small"
type="text"
icon={<PlusCircleOutlined />}
onClick={handleAdd}
></Button>
</Tooltip>
)} */}
</span>
</div>
);