fix: danmuku message ellipsis
This commit is contained in:
parent
ee829af279
commit
e8e243ee09
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ const DanmakuMessage: FC<PromptItemProps> = ({ data, className, onClick, onMouse
|
||||||
<AvatarImage src={data.userAvatar} className="size-full" alt="avatar" />
|
<AvatarImage src={data.userAvatar} className="size-full" alt="avatar" />
|
||||||
<AvatarFallback>{data.username.at(0)}</AvatarFallback>
|
<AvatarFallback>{data.username.at(0)}</AvatarFallback>
|
||||||
</Avatar>
|
</Avatar>
|
||||||
<div className="max-w-40 overflow-hidden text-ellipsis">{data.body}</div>
|
<div className="max-w-44 overflow-hidden text-ellipsis text-nowrap">{data.body}</div>
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue