fix: 优化最大值限制

pull/336/head
zouawen 2026-02-27 11:12:50 +08:00
parent cc808cb8c5
commit b2013436c5
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ const { startDrag } = useSidebarDrag();
const handleDragSidebar = (e: MouseEvent) => {
const { isSidebarMixed, collapseWidth, extraWidth, width } = props;
const minLimit = collapseWidth;
const maxLimit = isSidebarMixed ? width + 320 : 320;
const maxLimit = 320;
const currentWidth = isSidebarMixed ? extraWidth : width;
startDrag(
e,