|
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.1.1 |
| 6 | + * @version 12.2.0 |
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,15 @@ const settings = {
|
155 | 155 | const config = {
|
156 | 156 | changelog: [
|
157 | 157 | {
|
158 |
| - title: '12.1.1', |
| 158 | + title: '12.2.0', |
159 | 159 | type: 'added',
|
160 | 160 | 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', |
165 | 163 | ],
|
166 | 164 | },
|
167 | 165 | {
|
168 |
| - title: '1.0.0 - 12.1.0', |
| 166 | + title: '1.0.0 - 12.1.1', |
169 | 167 | type: 'added',
|
170 | 168 | items: [
|
171 | 169 | 'See the full changelog here: https://programmer2514.github.io/?l=cui-changelog',
|
@@ -1334,8 +1332,8 @@ const styles = {
|
1334 | 1332 | border-top: 1px solid var(--app-border-frame) !important;
|
1335 | 1333 | }
|
1336 | 1334 |
|
1337 |
| - .${modules.scroller?.scroller} { |
1338 |
| - padding-top: var(--space-xs) !important; |
| 1335 | + .${modules.scroller?.tree} { |
| 1336 | + padding-top: var(--space-sm) !important; |
1339 | 1337 | }
|
1340 | 1338 |
|
1341 | 1339 | .${modules.sidebar?.content} {
|
@@ -1456,6 +1454,10 @@ const styles = {
|
1456 | 1454 | max-width: 100% !important;
|
1457 | 1455 | }
|
1458 | 1456 |
|
| 1457 | + .${modules.icons?.container} { |
| 1458 | + border-left: 0 !important; |
| 1459 | + } |
| 1460 | +
|
1459 | 1461 | ${(settings.channelListWidth)
|
1460 | 1462 | ? `
|
1461 | 1463 | .${modules.sidebar?.sidebarList}:before {
|
@@ -1643,6 +1645,9 @@ const styles = {
|
1643 | 1645 | min-width: var(--cui-user-profile-width) !important;
|
1644 | 1646 | transition: max-width var(--cui-transition-speed), width var(--cui-transition-speed), min-width var(--cui-transition-speed);
|
1645 | 1647 | min-height: 100% !important;
|
| 1648 | + } |
| 1649 | + |
| 1650 | + .${modules.guilds?.content} .${modules.panel?.outer} .${modules.panel?.inner} { |
1646 | 1651 | border-left: 1px solid var(--border-subtle) !important;
|
1647 | 1652 | }
|
1648 | 1653 |
|
@@ -2053,6 +2058,9 @@ const styles = {
|
2053 | 2058 | z-index: 190 !important;
|
2054 | 2059 | top: var(--cui-forum-panel-top) !important;
|
2055 | 2060 | 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); |
2056 | 2064 | }
|
2057 | 2065 |
|
2058 | 2066 | div:not([class])[style^="min-width"],
|
@@ -2146,6 +2154,7 @@ const styles = {
|
2146 | 2154 | max-width: var(--cui-collapse-size) !important;
|
2147 | 2155 | width: var(--cui-collapse-size) !important;
|
2148 | 2156 | min-width: var(--cui-collapse-size) !important;
|
| 2157 | + --uirr-forum-panel-width: var(--cui-collapse-size); |
2149 | 2158 | }
|
2150 | 2159 |
|
2151 | 2160 | .${modules.guilds?.content}:after,
|
@@ -2812,6 +2821,7 @@ module.exports = class CollapsibleUI {
|
2812 | 2821 | if (e.target.classList.contains(modules.popout?.chatLayerWrapper)) {
|
2813 | 2822 | elements.chatWrapper?.style.setProperty('--transition', 'none');
|
2814 | 2823 | elements.noChat?.style.setProperty('--transition', 'none');
|
| 2824 | + e.target.childNodes.forEach(e => e.style.setProperty('transition', 'none')); |
2815 | 2825 | }
|
2816 | 2826 | }
|
2817 | 2827 | }, { passive: true, signal: runtime.controller.signal });
|
@@ -2919,6 +2929,8 @@ module.exports = class CollapsibleUI {
|
2919 | 2929 |
|
2920 | 2930 | elements.chatWrapper?.style.removeProperty('--width');
|
2921 | 2931 | elements.noChat?.style.removeProperty('--width');
|
| 2932 | + target.style.removeProperty('--uirr-forum-panel-width'); |
| 2933 | + target.childNodes.forEach(e => e.style.removeProperty('transition')); |
2922 | 2934 | // Timeout to avoid transition flash
|
2923 | 2935 | setTimeout(() => {
|
2924 | 2936 | elements.chatWrapper?.style.removeProperty('--transition');
|
@@ -2979,6 +2991,7 @@ module.exports = class CollapsibleUI {
|
2979 | 2991 | if (runtime.dragging.classList.contains(modules.popout?.chatLayerWrapper)) {
|
2980 | 2992 | elements.chatWrapper?.style.setProperty('--width', `${width}px`);
|
2981 | 2993 | elements.noChat?.style.setProperty('--width', `${width}px`);
|
| 2994 | + runtime.dragging.style.setProperty('--uirr-forum-panel-width', `${width}px`); |
2982 | 2995 | }
|
2983 | 2996 | }, { passive: true, signal: runtime.controller.signal });
|
2984 | 2997 |
|
|
0 commit comments