style: model tag style

This commit is contained in:
jialin
2024-10-17 14:59:42 +08:00
parent 349676d908
commit 909da7edb5
2 changed files with 4 additions and 8 deletions
@@ -63,6 +63,8 @@
} }
.row-prefix-wrapper { .row-prefix-wrapper {
display: flex;
align-items: center;
padding-left: var(--ant-table-cell-padding-inline); padding-left: var(--ant-table-cell-padding-inline);
} }
} }
+2 -8
View File
@@ -524,21 +524,18 @@ const Models: React.FC<ModelsProps> = ({
render={(text, record: ListItem) => { render={(text, record: ListItem) => {
return ( return (
<span <span
className="flex-center flex-wrap" className="flex-center"
style={{ style={{
maxWidth: '100%' maxWidth: '100%'
}} }}
> >
<AutoTooltip ghost> <AutoTooltip ghost>
<span>{text}</span> <span className="m-r-5">{text}</span>
</AutoTooltip> </AutoTooltip>
{record.reranker && ( {record.reranker && (
<Tag <Tag
style={{ style={{
margin: 0, margin: 0,
position: 'absolute',
bottom: '2px',
left: 13,
opacity: 0.8, opacity: 0.8,
transform: 'scale(0.9)' transform: 'scale(0.9)'
}} }}
@@ -551,9 +548,6 @@ const Models: React.FC<ModelsProps> = ({
<Tag <Tag
style={{ style={{
margin: 0, margin: 0,
position: 'absolute',
bottom: '2px',
left: 13,
opacity: 0.8, opacity: 0.8,
transform: 'scale(0.9)' transform: 'scale(0.9)'
}} }}