mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 13:00:39 +00:00
feat: update mobile layout query to 1180px and enhance icon loading experience
This commit is contained in:
+1
-1
@@ -217,7 +217,7 @@ export default function App() {
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') return;
|
||||
const media = window.matchMedia('(max-width: 900px)');
|
||||
const media = window.matchMedia('(max-width: 1180px)');
|
||||
const sync = () => setMobileLayout(media.matches);
|
||||
sync();
|
||||
if (typeof media.addEventListener === 'function') {
|
||||
|
||||
Reference in New Issue
Block a user