fix: title not show all if space is enough

This commit is contained in:
Joel 2025-01-02 11:37:17 +08:00
parent e112357e91
commit f11ea5ae97
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const Title = ({
title: string
}) => {
return (
<div className='max-w-[150px] truncate text-text-secondary system-md-semibold'>
<div className='truncate text-text-secondary system-md-semibold'>
{title}
</div>
)

View File

@ -94,7 +94,7 @@ const PluginItem: FC<Props> = ({
<div className="flex items-center h-5">
<Title title={label[locale]} />
{verified && <RiVerifiedBadgeLine className="shrink-0 ml-0.5 w-4 h-4 text-text-accent" />}
<Badge className='ml-1' text={source === PluginSource.github ? plugin.meta!.version : plugin.version} />
<Badge className='shrink-0 ml-1' text={source === PluginSource.github ? plugin.meta!.version : plugin.version} />
</div>
<div className='flex items-center justify-between'>
<Description text={description[locale]} descriptionLineRows={1}></Description>