Merge pull request #1565 from thelounge/astorije/fix-menu

Fix wrongly positioned menu when opening it and switching to landscape
This commit is contained in:
Jérémie Astori 2017-09-23 13:07:36 -04:00 committed by GitHub
commit 77714accca

View File

@ -353,26 +353,6 @@ kbd {
overflow: hidden; overflow: hidden;
} }
#viewport {
height: 100%;
transition: transform 160ms, -webkit-transform 160ms;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
#viewport.menu-open {
-webkit-transform: translate3d(220px, 0, 0);
transform: translate3d(220px, 0, 0);
}
#viewport.menu-dragging {
transition: none !important;
}
#viewport.menu-open .messages {
pointer-events: none;
}
#chat button, #chat button,
#form button, #form button,
#chat .user { #chat .user {
@ -2015,6 +1995,26 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
font-size: 15px; font-size: 15px;
} }
#viewport {
height: 100%;
transition: transform 160ms, -webkit-transform 160ms;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
#viewport.menu-open {
-webkit-transform: translate3d(220px, 0, 0);
transform: translate3d(220px, 0, 0);
}
#viewport.menu-dragging {
transition: none !important;
}
#viewport.menu-open .messages {
pointer-events: none;
}
#sidebar, #sidebar,
#footer { #footer {
left: -220px; left: -220px;