Remove label from sidebar

This commit is contained in:
Pierre HUBERT 2020-04-09 12:02:46 +02:00
parent de8a598f8c
commit 8dc337a00c
2 changed files with 25 additions and 2 deletions

View File

@ -90,6 +90,24 @@ body.sidebar-collapse .sidebar-menu {
* Conversations entries
*/
/**
add left border
.main-sidebar .memberships-list .conversation_memberhsip.has-unread-msg::before {
border: 2px white solid;
border-radius: 2px 0px 0px 2px;
content: " ";
position: absolute;
background-color: white;
height: 100%;
left: 1%;
}
*/
.main-sidebar .memberships-list .conversation_memberhsip.has-unread-msg {
background-color: #00a65a30;
}
.main-sidebar .memberships-list .conversation_memberhsip a {
padding: 5px 5px 5px 15px;
}

View File

@ -75,12 +75,12 @@ const SidebarMain = {
this.addSearchForm(section);
// User memberships
createElem2({
/*createElem2({
appendTo: section,
type: "div",
class: "intermediate-label hide-on-collapse",
innerHTML: "FRIENDS & GROUPS"
});
});*/
let userMemberships = createElem2({
appendTo: section,
type: "div",
@ -544,6 +544,11 @@ const SidebarMain = {
});
li.setAttribute("data-membership-conv-id", conv.ID)
// Check for unread messages
if(!conv.saw_last_message) {
li.classList.add("has-unread-msg");
}
let a = createElem2({
appendTo: li,
type: "a",