Update DisplayServersAsChannels.plugin.js

This commit is contained in:
Mirco Wittrien 2024-09-11 07:56:57 +02:00 committed by GitHub
parent 96cb4ba931
commit d4df5b63f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ module.exports = (_ => {
let scroller = BDFDB.ReactUtils.findChild(returnValue, {props: [["className", BDFDB.disCN.guildsscroller]]});
if (scroller) {
scroller.props.fade = true;
let padding = parseInt(BDFDB.LibraryModules.PlatformUtils.isWindows() ? 4 : BDFDB.LibraryModules.PlatformUtils.isLinux() ? 0 : 12) + 10;
let padding = parseInt(BDFDB.LibraryModules.PlatformUtils.isWindows() ? 4 : BDFDB.LibraryModules.PlatformUtils.isMax() ? 0 : 12) + 10;
let isVisible = (currentItem, t, items) => {
if (!scroller.ref || !scroller.ref.current) return false;
const index = items.findIndex(item => typeof item == "string" || !item ? currentItem === item : item.includes(currentItem));