Added extra room name text on mobile
This commit is contained in:
parent
c13d6c03d0
commit
1df2f02cc9
3 changed files with 9 additions and 5 deletions
|
@ -49,7 +49,10 @@ if (roomName) {
|
||||||
isSystem: true,
|
isSystem: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (window.screen.width < 1000) toggleOpen()
|
if (window.screen.width < 1000) {
|
||||||
|
toggleOpen()
|
||||||
|
document.querySelector("#roomName").innerText = roomName
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menuButton.addEventListener("click", toggleOpen)
|
menuButton.addEventListener("click", toggleOpen)
|
||||||
|
|
|
@ -38,7 +38,7 @@ body {
|
||||||
width: 0;
|
width: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
transition: width 0.6s;
|
transition: width 0.6s, padding 0.6s;
|
||||||
display: flex;
|
display: flex;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
color: white;
|
color: white;
|
||||||
|
@ -79,6 +79,7 @@ body {
|
||||||
|
|
||||||
#rooms.opened {
|
#rooms.opened {
|
||||||
width: 18vw;
|
width: 18vw;
|
||||||
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#rooms:not(.opened) + div nav {
|
#rooms:not(.opened) + div nav {
|
||||||
|
@ -121,8 +122,8 @@ a {
|
||||||
grid-template-columns: 1fr 500px;
|
grid-template-columns: 1fr 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav:first-child a {
|
nav span {
|
||||||
font-size: 1.5em !important;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<a href="#">Home</a><a href="#">Also home</a>
|
<span id="roomName"></span>
|
||||||
<div id="change-name">
|
<div id="change-name">
|
||||||
<span id="name-display"></span>
|
<span id="name-display"></span>
|
||||||
<button class="button-circle">
|
<button class="button-circle">
|
||||||
|
|
Reference in a new issue