Update PinDMs.plugin.js

This commit is contained in:
Mirco Wittrien 2020-04-01 19:34:22 +02:00
parent 3563b2291a
commit 10158f0067
1 changed files with 9 additions and 3 deletions

View File

@ -81,7 +81,7 @@ var PinDMs = (_ => {
box-sizing: border-box; box-sizing: border-box;
border: 1px dashed currentColor; border: 1px dashed currentColor;
} }
${BDFDB.dotCN._pindmspinnedchannelsheadercontainer + BDFDB.dotCNS._pindmsdmchannelplaceholder} { ${BDFDB.dotCN._pindmspinnedchannelsheadercontainer + BDFDB.dotCN._pindmsdmchannelplaceholder} {
margin-left: 8px; margin-left: 8px;
height: 12px; height: 12px;
box-sizing: border-box; box-sizing: border-box;
@ -407,7 +407,10 @@ var PinDMs = (_ => {
].filter(n => n) ].filter(n => n)
})); }));
if (this.hoveredChannel == "header_" + category.id) elements.push(BDFDB.ReactUtils.createElement("div", { if (this.hoveredChannel == "header_" + category.id) elements.push(BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCNS.dmchannel + BDFDB.disCNS._pindmsdmchannelpinned + BDFDB.disCNS._pindmsdmchannelplaceholder + BDFDB.disCN.namecontainernamecontainer className: BDFDB.disCNS.dmchannel + BDFDB.disCNS._pindmsdmchannelpinned + BDFDB.disCNS._pindmsdmchannelplaceholder + BDFDB.disCN.namecontainernamecontainer,
children: BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.namecontainerlayout
})
})); }));
for (let id of this.sortDMsByTime(foundDMs, "dmCategories")) { for (let id of this.sortDMsByTime(foundDMs, "dmCategories")) {
let channel = BDFDB.LibraryModules.ChannelStore.getChannel(id); let channel = BDFDB.LibraryModules.ChannelStore.getChannel(id);
@ -418,7 +421,10 @@ var PinDMs = (_ => {
selected: id === selectedChannelId selected: id === selectedChannelId
})); }));
if (this.hoveredChannel == id) elements.push(BDFDB.ReactUtils.createElement("div", { if (this.hoveredChannel == id) elements.push(BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCNS.dmchannel + BDFDB.disCNS._pindmsdmchannelpinned + BDFDB.disCNS._pindmsdmchannelplaceholder + BDFDB.disCN.namecontainernamecontainer className: BDFDB.disCNS.dmchannel + BDFDB.disCNS._pindmsdmchannelpinned + BDFDB.disCNS._pindmsdmchannelplaceholder + BDFDB.disCN.namecontainernamecontainer,
children: BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.namecontainerlayout
})
})); }));
} }
} }