feat: update mobile layout query to 1180px and enhance icon loading experience

This commit is contained in:
shuaiplus
2026-04-25 03:19:06 +08:00
parent e4bc1b9bbe
commit a1f7250e90
7 changed files with 78 additions and 32 deletions
+1 -1
View File
@@ -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') {