Skip to content

Commit

Permalink
chore(UI): Fix friends buttons and group aside on mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanM3x committed Sep 10, 2021
1 parent 8fd06be commit 18639a3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 11 deletions.
16 changes: 16 additions & 0 deletions components/tailored/core/group/aside/Aside.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
left: -5rem;
top: 1.8rem;
z-index: 999;
transition: visibility 0.1s;
}

#top-info {
Expand Down Expand Up @@ -89,3 +90,18 @@
background: @light-gray;
}
}

@media only screen and (max-width: 768px) {
#aside {
position: fixed;
right: 0px;
top: 0px;
z-index: 2;
background: @dark-gradient;
}
.is-open {
#aside {
transform: translateX(calc(@sidebar-size));
}
}
}
3 changes: 2 additions & 1 deletion components/tailored/core/mobile/nav/Nav.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
justify-content: center;
align-items: center;
padding-bottom: @normal-spacing;
z-index: 2;

svg {
font-size: @small-icon-size;
Expand All @@ -18,4 +19,4 @@
.active {
color: @primary-color;
}
}
}
9 changes: 6 additions & 3 deletions components/tailored/core/sidebar/Sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,14 @@
}
}




.sidebar-nav {
padding: 0 @normal-spacing;
margin-bottom: @light-spacing;
}

@media only screen and (max-width: 768px) {
#sidebar {
z-index: 3;
background: @dark-gradient;
}
}
8 changes: 4 additions & 4 deletions components/tailored/friends/friend/Friend.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.friend {
position: relative;
padding: @light-spacing @normal-spacing;
Expand All @@ -18,7 +17,8 @@

.description {
margin-left: @normal-spacing;
p, h1 {
p,
h1 {
margin: 0;
font-size: @mini-text-size;
}
Expand All @@ -34,9 +34,9 @@
justify-self: flex-end;
align-self: center;
float: right;
min-width: 4.8rem;
}


.spacer {
flex: 1;
}
Expand Down Expand Up @@ -67,4 +67,4 @@
.friend {
min-width: @viewport-width;
}
}
}
6 changes: 3 additions & 3 deletions layouts/chat/Chat.less
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
height: 0;
}
#mediastream {
height: calc(100% - @statusbar-height);
height: calc(100% - @statusbar-height);
}
}
}
Expand Down Expand Up @@ -121,14 +121,14 @@

&.direct {
.info-toggle {
display: none !important;
visibility: hidden !important;
}
}
}
}

&.is-open-aside {
.info-toggle {
display: none !important;
visibility: hidden !important;
}
}

0 comments on commit 18639a3

Please sign in to comment.