Skip to content

Commit

Permalink
refactor: 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
pipisebastian committed Nov 23, 2024
1 parent bd7d1b6 commit fc2cda9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/features/page/hooks/usePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,9 @@ export const usePage = ({ x, y }: Position) => {

switch (direction) {
case "right": {
// startWidth + deltaX 가 계속해서 변하는 값. 사용자가 마우스를 움직이면서 계속해서 변함
newWidth = Math.min(
window.innerWidth - startPosition.x - getSidebarWidth() - PADDING, // 최대 넓이를 지정하고 싶을때 Math.min
Math.max(PAGE.MIN_WIDTH, startWidth + deltaX), //최소 넓이를 지정하고 싶을때 Math.max
window.innerWidth - startPosition.x - getSidebarWidth() - PADDING,
Math.max(PAGE.MIN_WIDTH, startWidth + deltaX),
);
break;
}
Expand Down

0 comments on commit fc2cda9

Please sign in to comment.