mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +00:00
Remove label from sidebar
This commit is contained in:
parent
de8a598f8c
commit
8dc337a00c
@ -90,6 +90,24 @@ body.sidebar-collapse .sidebar-menu {
|
|||||||
* Conversations entries
|
* 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 {
|
.main-sidebar .memberships-list .conversation_memberhsip a {
|
||||||
padding: 5px 5px 5px 15px;
|
padding: 5px 5px 5px 15px;
|
||||||
}
|
}
|
||||||
|
@ -75,12 +75,12 @@ const SidebarMain = {
|
|||||||
this.addSearchForm(section);
|
this.addSearchForm(section);
|
||||||
|
|
||||||
// User memberships
|
// User memberships
|
||||||
createElem2({
|
/*createElem2({
|
||||||
appendTo: section,
|
appendTo: section,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "intermediate-label hide-on-collapse",
|
class: "intermediate-label hide-on-collapse",
|
||||||
innerHTML: "FRIENDS & GROUPS"
|
innerHTML: "FRIENDS & GROUPS"
|
||||||
});
|
});*/
|
||||||
let userMemberships = createElem2({
|
let userMemberships = createElem2({
|
||||||
appendTo: section,
|
appendTo: section,
|
||||||
type: "div",
|
type: "div",
|
||||||
@ -544,6 +544,11 @@ const SidebarMain = {
|
|||||||
});
|
});
|
||||||
li.setAttribute("data-membership-conv-id", conv.ID)
|
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({
|
let a = createElem2({
|
||||||
appendTo: li,
|
appendTo: li,
|
||||||
type: "a",
|
type: "a",
|
||||||
|
Loading…
Reference in New Issue
Block a user