diff --git a/src/App.tsx b/src/App.tsx index 647ef41..699e6c5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -117,6 +117,8 @@ const App: React.FC = (props) => { { signal: abortController.signal } ); + setIsSmallScreen(window.innerWidth <= SMALL_SCREEN_WIDTH); + globalEvent.on('user_tips', ({ type, message: _message }) => messageApi[type](_message), { signal: abortController.signal });