Skip to content

Commit

Permalink
fix(classroom): whiteboard size error
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheerego7 committed May 17, 2022
1 parent 80f862a commit e0991bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions desktop/renderer-app/src/components/Whiteboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ export const Whiteboard = observer<WhiteboardProps>(function Whiteboard({
let smallClassAvatarWrapMaxWidth: number;

if (isSmallClass) {
classRoomTopBarHeight = 182;
classRoomTopBarHeight = 150;
classRoomMinWidth = 1130;
classRoomMinHeight = 610;
} else {
classRoomTopBarHeight = 50;
classRoomTopBarHeight = 40;
classRoomMinWidth = 1020;
classRoomMinHeight = 522;
}
Expand Down
4 changes: 2 additions & 2 deletions web/flat-web/src/components/Whiteboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ export const Whiteboard = observer<WhiteboardProps>(function Whiteboard({
let smallClassAvatarWrapMaxWidth: number;

if (isSmallClass) {
classRoomTopBarHeight = 150;
classRoomMinWidth = whiteboardStore.isRightSideClose ? 826 : 1130;
classRoomMinHeight = 610;
classRoomTopBarHeight = 182;
} else {
classRoomTopBarHeight = 40;
classRoomMinWidth = whiteboardStore.isRightSideClose ? 716 : 1020;
classRoomMinHeight = 522;
classRoomTopBarHeight = 50;
}

const whiteboardWidth = Math.min(
Expand Down

0 comments on commit e0991bd

Please sign in to comment.