fix(web): model bugfix

This commit is contained in:
zhaoying
2026-01-28 19:58:33 +08:00
parent e89c23da4d
commit 0eb335d112
8 changed files with 11 additions and 16 deletions

View File

@@ -50,7 +50,7 @@ const RbCard: FC<RbCardProps> = ({
<Card
{...props}
title={typeof title === 'function' ? title() : title ?
<div className="rb:flex rb:items-center">
<div className="rb:flex rb:items-center rb:gap-2">
{avatarUrl
? <img src={avatarUrl} className="rb:mr-3.25 rb:w-12 rb:h-12 rb:rounded-lg" />
: avatar ? avatar : null
@@ -59,7 +59,7 @@ const RbCard: FC<RbCardProps> = ({
clsx(
{
'rb:max-w-full': !avatarUrl && !avatar,
'rb:max-w-[calc(100%-60px)]': avatarUrl || avatar,
'rb:max-w-[calc(100%-80px)]': avatarUrl || avatar,
}
)
}>