mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-06-01 23:38:48 +02:00
fix: Adjust side panel collapse breakpoint from 1920px to 1440px.
This commit is contained in:
@@ -181,13 +181,13 @@ export default function Home() {
|
||||
|
||||
useEffect(() => {
|
||||
// 初始化检查屏幕宽度
|
||||
if (window.innerWidth < 1920) {
|
||||
if (window.innerWidth < 1440) {
|
||||
setSidePanelCollapsed(true);
|
||||
}
|
||||
|
||||
// 监听 resize
|
||||
const handleResize = () => {
|
||||
if (window.innerWidth < 1920) {
|
||||
if (window.innerWidth < 1440) {
|
||||
setSidePanelCollapsed(true);
|
||||
} else {
|
||||
setSidePanelCollapsed(false);
|
||||
|
||||
Reference in New Issue
Block a user