- general fixes across the app
- minor fixes - code clean up and improvements
This commit is contained in:
@@ -93,9 +93,16 @@ const VideoFeedGridPainter = () => {
|
||||
const width = window.innerWidth;
|
||||
|
||||
const aspectRatio = BACKEND_WIDTH / BACKEND_HEIGHT;
|
||||
const newWidth = width * 0.6;
|
||||
const newHeight = newWidth / aspectRatio;
|
||||
setStageSize({ width: newWidth, height: newHeight });
|
||||
console.log(window.innerWidth);
|
||||
if (width < 768) {
|
||||
const newWidth = width * 0.8;
|
||||
const newHeight = newWidth / aspectRatio;
|
||||
setStageSize({ width: newWidth, height: newHeight });
|
||||
} else {
|
||||
const newWidth = width * 0.6;
|
||||
const newHeight = newWidth / aspectRatio;
|
||||
setStageSize({ width: newWidth, height: newHeight });
|
||||
}
|
||||
};
|
||||
|
||||
handleResize();
|
||||
|
||||
Reference in New Issue
Block a user