mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-14 21:10:37 +02:00
Make toast permanent for browser zoom
This commit is contained in:
@@ -553,6 +553,12 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
<Toast
|
<Toast
|
||||||
message={this.state.toastMessage}
|
message={this.state.toastMessage}
|
||||||
clearToast={this.clearToast}
|
clearToast={this.clearToast}
|
||||||
|
duration={
|
||||||
|
this.state.toastMessage === t("alerts.browserZoom")
|
||||||
|
? Infinity
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
|
closable={this.state.toastMessage === t("alerts.browserZoom")}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<main>{this.renderCanvas()}</main>
|
<main>{this.renderCanvas()}</main>
|
||||||
|
Reference in New Issue
Block a user