Update sidebar

This commit is contained in:
Pierre HUBERT 2021-04-05 16:35:43 +02:00
parent f13a60ef90
commit 0479a4d7a5
2 changed files with 8 additions and 6 deletions

View File

@ -132,8 +132,8 @@ add left border
}
*/
.main-sidebar .memberships-list .conversation_memberhsip.group-conversation {
padding-left: 20px;
.main-sidebar .memberships-list .group-conversation {
margin-left: 25px;
}
.main-sidebar .memberships-list .conversation_memberhsip.has-unread-msg {

View File

@ -88,12 +88,12 @@ const SidebarMain = {
});
this.refreshMemberships(userMemberships);
/* TODO RESET let interval = setInterval(() => {
let interval = setInterval(() => {
if(userMemberships.isConnected)
this.refreshMemberships(userMemberships);
else
clearInterval(interval);
}, 15000);*/
}, 15000);
/*// Recent conversations
@ -360,10 +360,12 @@ const SidebarMain = {
innerHTML: "<div style='height: 50px'></div>",
});
$(friendsTarget).slimscroll({
$.AdminLTE.layout.fixSidebar();
/*$(friendsTarget).slimscroll({
flex: 2,
height: "100%"
});
});*/
// Highlight active element
SidebarMain.refreshActiveElement()