fix: support text wrapping in buttons for long content (#19390)
This commit is contained in:
parent
135b8bd4f5
commit
a24c20a731
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ const MarkdownButton = ({ node }: any) => {
|
||||||
return <Button
|
return <Button
|
||||||
variant={variant}
|
variant={variant}
|
||||||
size={size}
|
size={size}
|
||||||
className={cn('!h-8 select-none !px-3')}
|
className={cn('!h-auto min-h-8 select-none whitespace-normal !px-3')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (is_valid_url(link)) {
|
if (is_valid_url(link)) {
|
||||||
window.open(link, '_blank')
|
window.open(link, '_blank')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue