Skip to content

Commit 3b08f7b

Browse files
author
Benjamin Pryor
committed
v12.2.0
1 parent 15b47b4 commit 3b08f7b

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

CHANGELOG.md

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

3+
### v12.2.0:
4+
* Added UIRefreshRefresh compatibility
5+
* Fixed visual glitch when collapsing forum popout
6+
37
### v12.1.1:
48
* Prevented hiding members list/user profile buttons while they are collapsed
59
* Fixed crash when trying to collapse all toolbar buttons

CollapsibleUI.plugin.js

Lines changed: 22 additions & 9 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.1.1
6+
* @version 12.2.0
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,15 @@ const settings = {
155155
const config = {
156156
changelog: [
157157
{
158-
title: '12.1.1',
158+
title: '12.2.0',
159159
type: 'added',
160160
items: [
161-
'Prevented hiding members list/user profile buttons while they are collapsed',
162-
'Fixed crash when trying to collapse all toolbar buttons',
163-
'Fixed size collapse not working on some elements',
164-
'Fixed several minor styling issues',
161+
'Added UIRefreshRefresh compatibility',
162+
'Fixed visual glitch when collapsing forum popout',
165163
],
166164
},
167165
{
168-
title: '1.0.0 - 12.1.0',
166+
title: '1.0.0 - 12.1.1',
169167
type: 'added',
170168
items: [
171169
'See the full changelog here: https://programmer2514.github.io/?l=cui-changelog',
@@ -1334,8 +1332,8 @@ const styles = {
13341332
border-top: 1px solid var(--app-border-frame) !important;
13351333
}
13361334
1337-
.${modules.scroller?.scroller} {
1338-
padding-top: var(--space-xs) !important;
1335+
.${modules.scroller?.tree} {
1336+
padding-top: var(--space-sm) !important;
13391337
}
13401338
13411339
.${modules.sidebar?.content} {
@@ -1456,6 +1454,10 @@ const styles = {
14561454
max-width: 100% !important;
14571455
}
14581456
1457+
.${modules.icons?.container} {
1458+
border-left: 0 !important;
1459+
}
1460+
14591461
${(settings.channelListWidth)
14601462
? `
14611463
.${modules.sidebar?.sidebarList}:before {
@@ -1643,6 +1645,9 @@ const styles = {
16431645
min-width: var(--cui-user-profile-width) !important;
16441646
transition: max-width var(--cui-transition-speed), width var(--cui-transition-speed), min-width var(--cui-transition-speed);
16451647
min-height: 100% !important;
1648+
}
1649+
1650+
.${modules.guilds?.content} .${modules.panel?.outer} .${modules.panel?.inner} {
16461651
border-left: 1px solid var(--border-subtle) !important;
16471652
}
16481653
@@ -2053,6 +2058,9 @@ const styles = {
20532058
z-index: 190 !important;
20542059
top: var(--cui-forum-panel-top) !important;
20552060
height: calc(100% - var(--cui-forum-panel-top)) !important;
2061+
max-height: 100% !important;
2062+
overflow: hidden !important;
2063+
--uirr-forum-panel-width: var(--cui-forum-popout-width);
20562064
}
20572065
20582066
div:not([class])[style^="min-width"],
@@ -2146,6 +2154,7 @@ const styles = {
21462154
max-width: var(--cui-collapse-size) !important;
21472155
width: var(--cui-collapse-size) !important;
21482156
min-width: var(--cui-collapse-size) !important;
2157+
--uirr-forum-panel-width: var(--cui-collapse-size);
21492158
}
21502159
21512160
.${modules.guilds?.content}:after,
@@ -2812,6 +2821,7 @@ module.exports = class CollapsibleUI {
28122821
if (e.target.classList.contains(modules.popout?.chatLayerWrapper)) {
28132822
elements.chatWrapper?.style.setProperty('--transition', 'none');
28142823
elements.noChat?.style.setProperty('--transition', 'none');
2824+
e.target.childNodes.forEach(e => e.style.setProperty('transition', 'none'));
28152825
}
28162826
}
28172827
}, { passive: true, signal: runtime.controller.signal });
@@ -2919,6 +2929,8 @@ module.exports = class CollapsibleUI {
29192929

29202930
elements.chatWrapper?.style.removeProperty('--width');
29212931
elements.noChat?.style.removeProperty('--width');
2932+
target.style.removeProperty('--uirr-forum-panel-width');
2933+
target.childNodes.forEach(e => e.style.removeProperty('transition'));
29222934
// Timeout to avoid transition flash
29232935
setTimeout(() => {
29242936
elements.chatWrapper?.style.removeProperty('--transition');
@@ -2979,6 +2991,7 @@ module.exports = class CollapsibleUI {
29792991
if (runtime.dragging.classList.contains(modules.popout?.chatLayerWrapper)) {
29802992
elements.chatWrapper?.style.setProperty('--width', `${width}px`);
29812993
elements.noChat?.style.setProperty('--width', `${width}px`);
2994+
runtime.dragging.style.setProperty('--uirr-forum-panel-width', `${width}px`);
29822995
}
29832996
}, { passive: true, signal: runtime.controller.signal });
29842997

0 commit comments

Comments
 (0)