mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 21:42:27 +08:00
fix(ToastPortal): prevent text overflow by adjusting toast width styles
This commit is contained in:
parent
fd1a3faa69
commit
5776512bf6
@ -23,7 +23,8 @@ export const ToastPortal = () => {
|
||||
timeout: 3000,
|
||||
classNames: {
|
||||
// This setting causes the 'hero-toast' class to be applied twice to the toast element. This is weird and I don't know why, but it works.
|
||||
base: 'hero-toast'
|
||||
// `w-auto` would not overwrite default style, which set the width to a fixed value and causes text overflow.
|
||||
base: 'hero-toast w-auto! max-w-[50vw]'
|
||||
}
|
||||
}}
|
||||
/>,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user