mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
make widths work on mobile
This commit is contained in:
parent
3dc828bae7
commit
e43d2d5a3e
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>agb - a rust framework for making Game Boy Advance games</title>
|
||||
<style>
|
||||
*,
|
||||
|
@ -31,9 +32,10 @@
|
|||
}
|
||||
|
||||
.gameDisplay {
|
||||
height: calc(min(480px, 40vh, calc(100vw / 3)));
|
||||
height: clamp(480px, 40vh, calc(100vw / 3));
|
||||
max-width: 100vw;
|
||||
margin-top: 20px;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.gameDisplay .imageWrapper {
|
||||
|
|
Loading…
Reference in a new issue