mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: make toast closable and allow custom duration (#5308)
* feat: make toast closable and allow custom duration * use Infinity to keep prevent auto close * rename to DEFAULT_TOAST_TIMEOUT and move to toast.tsx * fix * set closable as false by default and fix design * tweak css * reuse variables Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
dac8dda4d4
commit
76a5bb060e
3 changed files with 55 additions and 15 deletions
|
@ -116,7 +116,6 @@ export const IMAGE_RENDER_TIMEOUT = 500;
|
|||
export const TAP_TWICE_TIMEOUT = 300;
|
||||
export const TOUCH_CTX_MENU_TIMEOUT = 500;
|
||||
export const TITLE_TIMEOUT = 10000;
|
||||
export const TOAST_TIMEOUT = 5000;
|
||||
export const VERSION_TIMEOUT = 30000;
|
||||
export const SCROLL_TIMEOUT = 100;
|
||||
export const ZOOM_STEP = 0.1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue