PlainFolderIcon: Fix on new UI (#3317)

This commit is contained in:
sadan4 2025-04-01 22:22:47 -04:00 committed by GitHub
parent 95bd8c831c
commit cef806a243
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,9 +25,19 @@ export default definePlugin({
authors: [Devs.botato], authors: [Devs.botato],
patches: [{ patches: [{
find: ".expandedFolderIconWrapper", find: ".expandedFolderIconWrapper",
replacement: [{ replacement: [
match: /\(\w\|\|\w\)&&(\(.{0,40}\(.{1,3}\.animated)/, // there are two elements, the first one is the plain folder icon
replace: "$1", // the second is the four guild preview icons
}] // always show this one (the plain icons)
{
match: /\(\i\|\|\i\)&&(\(.{0,40}\(\i\.animated)/,
replace: "$1",
},
// and never show this one (the guild preview icons)
{
match: /\(\i\|\|!\i\)&&(\(.{0,40}\(\i\.animated)/,
replace: "false&&$1",
}
]
}] }]
}); });