diff --git a/web/index.html b/web/index.html index 36783c7..afe58e9 100644 --- a/web/index.html +++ b/web/index.html @@ -113,7 +113,7 @@ opacity: 0.7; } - input[type="radio"]:disabled + label { + input[type="radio"]:disabled+label { opacity: 0.7; cursor: not-allowed; } @@ -157,13 +157,9 @@ #controls { display: grid; - grid-template-areas: - "screen-ul up screen-ur menu" - "left . right action" - "screen-ll down screen-lr ." - "power . mute ."; grid-gap: 10px; - width: 350px; + /* match canvas width */ + max-width: 90vw; margin: 10px auto; background: rgba(255, 255, 255, 0.1); padding: 10px; @@ -183,6 +179,13 @@ transition: background-color 0.2s ease, transform 0.2s ease; } + /* adjust controls for small screens */ + @media screen and (max-width: 400px){ + #controls .dir-btn-container button { + padding: 0.5px; + } + } + #controls button:hover { transform: scale(1.05); background-color: #666; @@ -233,20 +236,56 @@ -