fix: danmuku message ellipsis

This commit is contained in:
molvqingtai 2024-10-11 15:22:22 +08:00
parent ee829af279
commit e8e243ee09

View file

@ -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>
) )
} }