Skip to content

Commit 26f77ec

Browse files
v12.3.1
Closes #194
1 parent 79a5f85 commit 26f77ec

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CollapsibleUI Patch Notes
22

3+
### v12.3.1:
4+
* Added BetterAnimations compatibility
5+
36
### v12.3.0:
47
* Widened the available size range of resizable elements
58
* Fixed Quest popup being cut off

CollapsibleUI.plugin.js

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author programmer2514
44
* @authorId 563652755814875146
55
* @description A feature-rich BetterDiscord plugin that reworks the Discord UI to be significantly more modular
6-
* @version 12.3.0
6+
* @version 12.3.1
77
* @donate https://ko-fi.com/benjaminpryor
88
* @patreon https://www.patreon.com/BenjaminPryor
99
* @website https://github.com/programmer2514/BetterDiscord-CollapsibleUI
@@ -155,17 +155,14 @@ const settings = {
155155
const config = {
156156
changelog: [
157157
{
158-
title: '12.3.0',
158+
title: '12.3.1',
159159
type: 'added',
160160
items: [
161-
'Widened the available size range of resizable elements',
162-
'Fixed Quest popup being cut off',
163-
'Fixed broken Webpack modules',
164-
'Updated CSS variables',
161+
'Added BetterAnimations compatibility',
165162
],
166163
},
167164
{
168-
title: '1.0.0 - 12.2.4',
165+
title: '1.0.0 - 12.3.0',
169166
type: 'added',
170167
items: [
171168
'See the full changelog here: https://programmer2514.github.io/?l=cui-changelog',
@@ -1226,14 +1223,38 @@ const runtime = {
12261223
|| node.classList?.contains(modules.popout?.chatLayerWrapper)) {
12271224
this.plugin.partialReload();
12281225
}
1226+
1227+
if (runtime.api.Plugins.isEnabled('BetterAnimations')) {
1228+
node.classList?.forEach((className) => {
1229+
if (className.startsWith('BA__')) {
1230+
this.plugin.partialReload();
1231+
}
1232+
});
1233+
}
12291234
});
12301235
mutation.removedNodes.forEach((node) => {
12311236
if (node.classList?.contains(modules.panel?.outer)
12321237
|| node.classList?.contains(modules.search?.searchResultsWrap)
12331238
|| node.classList?.contains(modules.popout?.chatLayerWrapper)) {
12341239
this.plugin.partialReload();
12351240
}
1241+
1242+
if (runtime.api.Plugins.isEnabled('BetterAnimations')) {
1243+
node.classList?.forEach((className) => {
1244+
if (className.startsWith('BA__')) {
1245+
this.plugin.partialReload();
1246+
}
1247+
});
1248+
}
12361249
});
1250+
1251+
if (runtime.api.Plugins.isEnabled('BetterAnimations')) {
1252+
mutation.target.classList.forEach((className) => {
1253+
if (className.startsWith('BA__')) {
1254+
this.plugin.partialReload();
1255+
}
1256+
});
1257+
}
12371258
});
12381259
}));
12391260
},
@@ -2138,6 +2159,11 @@ const styles = {
21382159
border-left: none !important;
21392160
}
21402161
2162+
.BA__sidebar {
2163+
position: static !important;
2164+
z-index: 1000000 !important;
2165+
}
2166+
21412167
${(settings.forumPopoutWidth)
21422168
? `
21432169
.${modules.popout?.chatLayerWrapper}:before {

0 commit comments

Comments
 (0)