- general fixes across the app

- minor fixes
- code clean up and improvements
This commit is contained in:
2025-12-08 09:03:04 +00:00
parent 4c53c04767
commit 7cda7d5887
11 changed files with 24 additions and 16 deletions

View File

@@ -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();