Skip to content

Commit f853ffe

Browse files
author
Benjamin Pryor
committed
v12.3.0
Closes #146 Fixes #186 Fixes #191
1 parent 1d92c3a commit f853ffe

File tree

2 files changed

+29
-15
lines changed

2 files changed

+29
-15
lines changed

CHANGELOG.md

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

3+
### v12.3.0:
4+
* Widened the available size range of resizable elements
5+
* Fixed Quest popup being cut off
6+
* Fixed broken Webpack modules
7+
* Updated CSS variables
8+
39
### v12.2.4:
410
* Fixed user area being cut off
511
* Fixed a small visual glitch caused by collapsing the channel list

CollapsibleUI.plugin.js

Lines changed: 23 additions & 15 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.2.4
6+
* @version 12.3.0
77
* @donate https://ko-fi.com/benjaminpryor
88
* @patreon https://www.patreon.com/BenjaminPryor
99
* @website https://github.com/programmer2514/BetterDiscord-CollapsibleUI
@@ -155,16 +155,17 @@ const settings = {
155155
const config = {
156156
changelog: [
157157
{
158-
title: '12.2.4',
158+
title: '12.3.0',
159159
type: 'added',
160160
items: [
161-
'Fixed user area being cut off',
162-
'Fixed a small visual glitch caused by collapsing the channel list',
163-
'Improved UIRefreshRefresh compatibility',
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',
164165
],
165166
},
166167
{
167-
title: '1.0.0 - 12.2.3',
168+
title: '1.0.0 - 12.2.4',
168169
type: 'added',
169170
items: [
170171
'See the full changelog here: https://programmer2514.github.io/?l=cui-changelog',
@@ -1131,14 +1132,14 @@ const modules = {
11311132
get icons() { return this._icons ?? (this._icons = runtime.api.Webpack.getByKeys('selected', 'iconWrapper', 'clickable', 'icon')); },
11321133
get dispatcher() { return this._dispatcher ?? (this._dispatcher = runtime.api.Webpack.getByKeys('dispatch', 'isDispatching')); },
11331134
get social() { return this._social ?? (this._social = runtime.api.Webpack.getByKeys('inviteToolbar', 'peopleColumn', 'addFriend')); },
1134-
get toolbar() { return this._toolbar ?? (this._toolbar = runtime.api.Webpack.getByKeys('updateIconForeground', 'search', 'forumOrHome')); },
1135+
get toolbar() { return this._toolbar ?? (this._toolbar = runtime.api.Webpack.getByKeys('updateIconForeground', 'search', 'downloadArrow')); },
11351136
get panel() { return this._panel ?? (this._panel = runtime.api.Webpack.getByKeys('outer', 'inner', 'overlay')); },
11361137
get guilds() { return this._guilds ?? (this._guilds = runtime.api.Webpack.getByKeys('chatContent', 'noChat', 'parentChannelName', 'linkedLobby')); },
11371138
get frame() { return this._frame ?? (this._frame = runtime.api.Webpack.getByKeys('bar', 'title', 'winButtons')); },
11381139
get calls() { return this._calls ?? (this._calls = runtime.api.Webpack.getByKeys('wrapper', 'fullScreen', 'callContainer')); },
11391140
get threads() { return this._threads ?? (this._threads = runtime.api.Webpack.getByKeys('uploadArea', 'newMemberBanner', 'mainCard', 'newPostsButton')); },
11401141
get user() { return this._user ?? (this._user = runtime.api.Webpack.getByKeys('avatar', 'nameTag', 'customStatus', 'emoji', 'buttons')); },
1141-
get input() { return this._input ?? (this._input = runtime.api.Webpack.getByKeys('channelTextArea', 'accessoryBar', 'emojiButton')); },
1142+
get input() { return this._input ?? (this._input = runtime.api.Webpack.getByKeys('channelTextArea', 'attachButton', 'emojiButton')); },
11421143
get popout() { return this._popout ?? (this._popout = runtime.api.Webpack.getByKeys('chatLayerWrapper', 'container', 'chatTarget')); },
11431144
get sidebar() { return this._sidebar ?? (this._sidebar = runtime.api.Webpack.getByKeys('sidebar', 'activityPanel', 'sidebarListRounded')); },
11441145
get effects() { return this._effects ?? (this._effects = runtime.api.Webpack.getByKeys('profileEffects', 'hovered', 'effect')); },
@@ -1148,7 +1149,7 @@ const modules = {
11481149
get channels() { return this._channels ?? (this._channels = runtime.api.Webpack.getByKeys('channel', 'closeIcon', 'dm')); },
11491150
get activity() { return this._activity ?? (this._activity = runtime.api.Webpack.getByKeys('itemCard', 'emptyCard', 'emptyText')); },
11501151
get game() { return this._game ?? (this._game = runtime.api.Webpack.getByKeys('openOnHover', 'userSection', 'thumbnail')); },
1151-
get callIcons() { return this._callIcons ?? (this._callIcons = runtime.api.Webpack.getByKeys('button', 'divider', 'lastButton')); },
1152+
get callIcons() { return this._callIcons ?? (this._callIcons = runtime.api.Webpack.getByKeys('button', 'speaker', 'last', 'lastButton')); },
11521153
get callButtons() { return this._callButtons ?? (this._callButtons = runtime.api.Webpack.getByKeys('controlButton', 'wrapper', 'buttonContainer')); },
11531154
get userAreaButtons() { return this._userAreaButtons ?? (this._userAreaButtons = runtime.api.Webpack.getByKeys('actionButtons', 'micTestButton', 'buttonIcon')); },
11541155
get scroller() { return this._scroller ?? (this._scroller = runtime.api.Webpack.getByKeys('wrapper', 'scroller', 'discoveryIcon')); },
@@ -1837,7 +1838,7 @@ const styles = {
18371838
top: 0 !important;
18381839
left: 0 !important;
18391840
right: 0 !important;
1840-
background: var(--background-tertiary) !important;
1841+
background: var(--bg-base-tertiary) !important;
18411842
z-index: 200 !important;
18421843
--custom-app-top-bar-height: calc(24px + var(--space-8));
18431844
border-bottom: 1px solid var(--app-border-frame) !important;
@@ -1923,10 +1924,10 @@ const styles = {
19231924
.${modules.sidebar?.panels} {
19241925
transition: max-height var(--cui-transition-speed), width var(--cui-transition-speed), border var(--cui-transition-speed) !important;
19251926
max-height: ${settings.userAreaMaxHeight}px !important;
1926-
overflow: hidden !important;
19271927
width: calc((var(--cui-channel-list-width) * var(--cui-channel-list-toggled)) + (var(--custom-guild-list-width) * var(--cui-server-list-toggled) * var(--cui-compat-hsl) * (1 - var(--fst-server-list-collapsed))) - (var(--space-xs) * 2)) !important;
19281928
border-left-width: clamp(0px, calc(1px * ((var(--cui-server-list-toggled) * var(--cui-compat-hsl) * (1 - var(--fst-server-list-collapsed))) + var(--cui-channel-list-toggled))), 1px) !important;
19291929
border-right-width: clamp(0px, calc(1px * ((var(--cui-server-list-toggled) * var(--cui-compat-hsl) * (1 - var(--fst-server-list-collapsed))) + var(--cui-channel-list-toggled))), 1px) !important;
1930+
opacity: clamp(0, calc((var(--cui-server-list-toggled) * var(--cui-compat-hsl) * (1 - var(--fst-server-list-collapsed))) + var(--cui-channel-list-toggled)), 1) !important;
19301931
z-index: 191 !important;
19311932
}
19321933
@@ -1958,6 +1959,7 @@ const styles = {
19581959
max-height: var(--cui-collapse-size) !important;
19591960
border-top-width: 0px !important;
19601961
border-bottom-width: 0px !important;
1962+
overflow: hidden !important;
19611963
}
19621964
`.replace(/\s+/g, ' ')]);
19631965
},
@@ -1968,6 +1970,7 @@ const styles = {
19681970
max-height: ${settings.userAreaMaxHeight}px !important;
19691971
border-top-width: 1px !important;
19701972
border-bottom-width: 1px !important;
1973+
overflow: visible !important;
19711974
}
19721975
`.replace(/\s+/g, ' ')]);
19731976
},
@@ -2471,6 +2474,10 @@ const styles = {
24712474
.${modules.threads?.headerRow} {
24722475
min-width: 0px !important;
24732476
}
2477+
2478+
.${modules.sidebar?.sidebarList} {
2479+
container-type: unset !important;
2480+
}
24742481
`.replace(/\s+/g, ' '));
24752482

24762483
// Init panel styles
@@ -2619,6 +2626,7 @@ module.exports = class CollapsibleUI {
26192626

26202627
runtime.observer.disconnect();
26212628

2629+
// Terminate the plugin
26222630
this.terminate();
26232631
runtime.api.Logger.info('Disabled');
26242632
};
@@ -2993,10 +3001,10 @@ module.exports = class CollapsibleUI {
29933001
let width = runtime.dragging.classList.contains(modules.sidebar?.sidebarList)
29943002
? e.clientX - runtime.dragging.getBoundingClientRect().left
29953003
: runtime.dragging.getBoundingClientRect().right - e.clientX;
2996-
if (width > window.innerWidth * 0.5)
2997-
width = window.innerWidth * 0.5;
2998-
else if (width < 101)
2999-
width = 101;
3004+
if (width > window.innerWidth * 0.6)
3005+
width = window.innerWidth * 0.6;
3006+
else if (width < 80)
3007+
width = 80;
30003008

30013009
// Handle resizing members list/user profile/search panel/activity panel/forum popout
30023010
if (runtime.dragging.classList.contains(modules.members?.membersWrap)

0 commit comments

Comments
 (0)