fix: support text wrapping in buttons for long content (#19390)

This commit is contained in:
DDDDD12138 2025-05-08 22:50:55 +08:00 committed by GitHub
parent 135b8bd4f5
commit a24c20a731
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ const MarkdownButton = ({ node }: any) => {
return <Button
variant={variant}
size={size}
className={cn('!h-8 select-none !px-3')}
className={cn('!h-auto min-h-8 select-none whitespace-normal !px-3')}
onClick={() => {
if (is_valid_url(link)) {
window.open(link, '_blank')