Skip to content

Commit 78e1c74

Browse files
committed
Adjust renderer size calculation in Hero component to include a margin for better layout consistency
1 parent bde3c13 commit 78e1c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/hero/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void main() {
9797

9898
const updateSize = () => {
9999
const height = isMobile() ? MOBILE_HEIGHT : DESKTOP_HEIGHT;
100-
renderer.setSize(window.innerWidth, window.innerHeight - height);
100+
renderer.setSize(window.innerWidth - 32, window.innerHeight - height);
101101
camera.perspective({ aspect: gl.canvas.width / gl.canvas.height });
102102
};
103103

0 commit comments

Comments
 (0)