mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Make side-bar responsive
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
9ac415fa4f
commit
eab6ca3baf
@ -72,7 +72,7 @@ the layout viewport up without resizing it when the keyboard shows */
|
||||
.middle .close-middle { display: none; }
|
||||
/* mobile layout */
|
||||
@media screen and (max-width: 800px) {
|
||||
.SessionView:not(.middle-shown) {
|
||||
.SessionView:not(.middle-shown, .SideBarActive) {
|
||||
grid-template:
|
||||
"status" auto
|
||||
"left" 1fr /
|
||||
@ -86,8 +86,17 @@ the layout viewport up without resizing it when the keyboard shows */
|
||||
1fr;
|
||||
}
|
||||
|
||||
.SessionView.SideBarActive{
|
||||
grid-template:
|
||||
"status" auto
|
||||
"right" 1fr /
|
||||
1fr;
|
||||
|
||||
}
|
||||
|
||||
.SessionView:not(.middle-shown) .room-placeholder { display: none; }
|
||||
.SessionView.middle-shown .LeftPanel { display: none; }
|
||||
.SessionView.SideBarActive .middle { display: none; }
|
||||
|
||||
/* show back button */
|
||||
.middle .close-middle { display: block !important; }
|
||||
|
Loading…
Reference in New Issue
Block a user