Added extra room name text on mobile

This commit is contained in:
Henry Hiles 2022-02-01 11:00:54 -05:00
parent c13d6c03d0
commit 1df2f02cc9
3 changed files with 9 additions and 5 deletions

View file

@ -49,7 +49,10 @@ if (roomName) {
isSystem: true,
})
if (window.screen.width < 1000) toggleOpen()
if (window.screen.width < 1000) {
toggleOpen()
document.querySelector("#roomName").innerText = roomName
}
}
menuButton.addEventListener("click", toggleOpen)

View file

@ -38,7 +38,7 @@ body {
width: 0;
overflow: hidden;
align-items: center;
transition: width 0.6s;
transition: width 0.6s, padding 0.6s;
display: flex;
z-index: 1;
color: white;
@ -79,6 +79,7 @@ body {
#rooms.opened {
width: 18vw;
padding: 20px;
}
#rooms:not(.opened) + div nav {
@ -121,8 +122,8 @@ a {
grid-template-columns: 1fr 500px;
}
nav:first-child a {
font-size: 1.5em !important;
nav span {
font-size: 2em;
}
footer {

View file

@ -76,7 +76,7 @@
/>
</svg>
</button>
<a href="#">Home</a><a href="#">Also home</a>
<span id="roomName"></span>
<div id="change-name">
<span id="name-display"></span>
<button class="button-circle">