Adapt walkie-talkie layout to hide controls at small sizes

This commit is contained in:
Robin Townsend
2022-07-05 13:45:40 -04:00
parent 984b02700e
commit b9a2473d19
2 changed files with 88 additions and 67 deletions

View File

@@ -1,6 +1,6 @@
.pttButton {
width: 100vw;
height: 100vh;
height: 100%;
aspect-ratio: 1;
max-height: 232px;
max-width: 232px;
border-radius: 116px;
@@ -9,9 +9,20 @@
background-color: #21262c;
position: relative;
padding: 0;
margin: 4px;
cursor: pointer;
}
.micIcon {
max-height: 50%;
}
.avatar {
/* Remove explicit size to allow avatar to scale with the button */
width: unset !important;
height: unset !important;
}
.talking {
background-color: var(--accent);
cursor: unset;