Skip to content

Commit 77ec030

Browse files
committed
fix blob sizing for very small windows
1 parent 2eb5326 commit 77ec030

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

demo/example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ exampleContainer.appendChild(canvas);
1010
let size = 0;
1111
const resize = () => {
1212
// Set blob size relative to window, but limit to 600.
13-
const rawSize = Math.min(600, Math.min(window.innerWidth - 64, window.innerHeight - 256));
13+
const rawSize = Math.min(600, Math.min(window.innerWidth - 64, window.innerHeight / 2));
1414
canvas.style.width = `${rawSize}px`;
1515
canvas.style.height = `${rawSize}px`;
1616

demo/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
}
2626

2727
header img {
28-
height: 6rem;
28+
height: 16vh;
29+
max-height: 6rem;
2930
}
3031

3132
header nav a,

0 commit comments

Comments
 (0)