|
3 | 3 | * @author programmer2514 |
4 | 4 | * @authorId 563652755814875146 |
5 | 5 | * @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 |
7 | 7 | * @donate https://ko-fi.com/benjaminpryor |
8 | 8 | * @patreon https://www.patreon.com/BenjaminPryor |
9 | 9 | * @website https://github.com/programmer2514/BetterDiscord-CollapsibleUI |
@@ -155,17 +155,14 @@ const settings = { |
155 | 155 | const config = { |
156 | 156 | changelog: [ |
157 | 157 | { |
158 | | - title: '12.3.0', |
| 158 | + title: '12.3.1', |
159 | 159 | type: 'added', |
160 | 160 | 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', |
165 | 162 | ], |
166 | 163 | }, |
167 | 164 | { |
168 | | - title: '1.0.0 - 12.2.4', |
| 165 | + title: '1.0.0 - 12.3.0', |
169 | 166 | type: 'added', |
170 | 167 | items: [ |
171 | 168 | 'See the full changelog here: https://programmer2514.github.io/?l=cui-changelog', |
@@ -1226,14 +1223,38 @@ const runtime = { |
1226 | 1223 | || node.classList?.contains(modules.popout?.chatLayerWrapper)) { |
1227 | 1224 | this.plugin.partialReload(); |
1228 | 1225 | } |
| 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 | + } |
1229 | 1234 | }); |
1230 | 1235 | mutation.removedNodes.forEach((node) => { |
1231 | 1236 | if (node.classList?.contains(modules.panel?.outer) |
1232 | 1237 | || node.classList?.contains(modules.search?.searchResultsWrap) |
1233 | 1238 | || node.classList?.contains(modules.popout?.chatLayerWrapper)) { |
1234 | 1239 | this.plugin.partialReload(); |
1235 | 1240 | } |
| 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 | + } |
1236 | 1249 | }); |
| 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 | + } |
1237 | 1258 | }); |
1238 | 1259 | })); |
1239 | 1260 | }, |
@@ -2138,6 +2159,11 @@ const styles = { |
2138 | 2159 | border-left: none !important; |
2139 | 2160 | } |
2140 | 2161 |
|
| 2162 | + .BA__sidebar { |
| 2163 | + position: static !important; |
| 2164 | + z-index: 1000000 !important; |
| 2165 | + } |
| 2166 | +
|
2141 | 2167 | ${(settings.forumPopoutWidth) |
2142 | 2168 | ? ` |
2143 | 2169 | .${modules.popout?.chatLayerWrapper}:before { |
|
0 commit comments