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.2.4
6
+ * @version 12.3.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,16 +155,17 @@ const settings = {
155
155
const config = {
156
156
changelog : [
157
157
{
158
- title : '12.2.4 ' ,
158
+ title : '12.3.0 ' ,
159
159
type : 'added' ,
160
160
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' ,
164
165
] ,
165
166
} ,
166
167
{
167
- title : '1.0.0 - 12.2.3 ' ,
168
+ title : '1.0.0 - 12.2.4 ' ,
168
169
type : 'added' ,
169
170
items : [
170
171
'See the full changelog here: https://programmer2514.github.io/?l=cui-changelog' ,
@@ -1131,14 +1132,14 @@ const modules = {
1131
1132
get icons ( ) { return this . _icons ?? ( this . _icons = runtime . api . Webpack . getByKeys ( 'selected' , 'iconWrapper' , 'clickable' , 'icon' ) ) ; } ,
1132
1133
get dispatcher ( ) { return this . _dispatcher ?? ( this . _dispatcher = runtime . api . Webpack . getByKeys ( 'dispatch' , 'isDispatching' ) ) ; } ,
1133
1134
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 ' ) ) ; } ,
1135
1136
get panel ( ) { return this . _panel ?? ( this . _panel = runtime . api . Webpack . getByKeys ( 'outer' , 'inner' , 'overlay' ) ) ; } ,
1136
1137
get guilds ( ) { return this . _guilds ?? ( this . _guilds = runtime . api . Webpack . getByKeys ( 'chatContent' , 'noChat' , 'parentChannelName' , 'linkedLobby' ) ) ; } ,
1137
1138
get frame ( ) { return this . _frame ?? ( this . _frame = runtime . api . Webpack . getByKeys ( 'bar' , 'title' , 'winButtons' ) ) ; } ,
1138
1139
get calls ( ) { return this . _calls ?? ( this . _calls = runtime . api . Webpack . getByKeys ( 'wrapper' , 'fullScreen' , 'callContainer' ) ) ; } ,
1139
1140
get threads ( ) { return this . _threads ?? ( this . _threads = runtime . api . Webpack . getByKeys ( 'uploadArea' , 'newMemberBanner' , 'mainCard' , 'newPostsButton' ) ) ; } ,
1140
1141
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' ) ) ; } ,
1142
1143
get popout ( ) { return this . _popout ?? ( this . _popout = runtime . api . Webpack . getByKeys ( 'chatLayerWrapper' , 'container' , 'chatTarget' ) ) ; } ,
1143
1144
get sidebar ( ) { return this . _sidebar ?? ( this . _sidebar = runtime . api . Webpack . getByKeys ( 'sidebar' , 'activityPanel' , 'sidebarListRounded' ) ) ; } ,
1144
1145
get effects ( ) { return this . _effects ?? ( this . _effects = runtime . api . Webpack . getByKeys ( 'profileEffects' , 'hovered' , 'effect' ) ) ; } ,
@@ -1148,7 +1149,7 @@ const modules = {
1148
1149
get channels ( ) { return this . _channels ?? ( this . _channels = runtime . api . Webpack . getByKeys ( 'channel' , 'closeIcon' , 'dm' ) ) ; } ,
1149
1150
get activity ( ) { return this . _activity ?? ( this . _activity = runtime . api . Webpack . getByKeys ( 'itemCard' , 'emptyCard' , 'emptyText' ) ) ; } ,
1150
1151
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' ) ) ; } ,
1152
1153
get callButtons ( ) { return this . _callButtons ?? ( this . _callButtons = runtime . api . Webpack . getByKeys ( 'controlButton' , 'wrapper' , 'buttonContainer' ) ) ; } ,
1153
1154
get userAreaButtons ( ) { return this . _userAreaButtons ?? ( this . _userAreaButtons = runtime . api . Webpack . getByKeys ( 'actionButtons' , 'micTestButton' , 'buttonIcon' ) ) ; } ,
1154
1155
get scroller ( ) { return this . _scroller ?? ( this . _scroller = runtime . api . Webpack . getByKeys ( 'wrapper' , 'scroller' , 'discoveryIcon' ) ) ; } ,
@@ -1837,7 +1838,7 @@ const styles = {
1837
1838
top: 0 !important;
1838
1839
left: 0 !important;
1839
1840
right: 0 !important;
1840
- background: var(--background -tertiary) !important;
1841
+ background: var(--bg-base -tertiary) !important;
1841
1842
z-index: 200 !important;
1842
1843
--custom-app-top-bar-height: calc(24px + var(--space-8));
1843
1844
border-bottom: 1px solid var(--app-border-frame) !important;
@@ -1923,10 +1924,10 @@ const styles = {
1923
1924
.${ modules . sidebar ?. panels } {
1924
1925
transition: max-height var(--cui-transition-speed), width var(--cui-transition-speed), border var(--cui-transition-speed) !important;
1925
1926
max-height: ${ settings . userAreaMaxHeight } px !important;
1926
- overflow: hidden !important;
1927
1927
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;
1928
1928
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;
1929
1929
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;
1930
1931
z-index: 191 !important;
1931
1932
}
1932
1933
@@ -1958,6 +1959,7 @@ const styles = {
1958
1959
max-height: var(--cui-collapse-size) !important;
1959
1960
border-top-width: 0px !important;
1960
1961
border-bottom-width: 0px !important;
1962
+ overflow: hidden !important;
1961
1963
}
1962
1964
` . replace ( / \s + / g, ' ' ) ] ) ;
1963
1965
} ,
@@ -1968,6 +1970,7 @@ const styles = {
1968
1970
max-height: ${ settings . userAreaMaxHeight } px !important;
1969
1971
border-top-width: 1px !important;
1970
1972
border-bottom-width: 1px !important;
1973
+ overflow: visible !important;
1971
1974
}
1972
1975
` . replace ( / \s + / g, ' ' ) ] ) ;
1973
1976
} ,
@@ -2471,6 +2474,10 @@ const styles = {
2471
2474
.${ modules . threads ?. headerRow } {
2472
2475
min-width: 0px !important;
2473
2476
}
2477
+
2478
+ .${ modules . sidebar ?. sidebarList } {
2479
+ container-type: unset !important;
2480
+ }
2474
2481
` . replace ( / \s + / g, ' ' ) ) ;
2475
2482
2476
2483
// Init panel styles
@@ -2619,6 +2626,7 @@ module.exports = class CollapsibleUI {
2619
2626
2620
2627
runtime . observer . disconnect ( ) ;
2621
2628
2629
+ // Terminate the plugin
2622
2630
this . terminate ( ) ;
2623
2631
runtime . api . Logger . info ( 'Disabled' ) ;
2624
2632
} ;
@@ -2993,10 +3001,10 @@ module.exports = class CollapsibleUI {
2993
3001
let width = runtime . dragging . classList . contains ( modules . sidebar ?. sidebarList )
2994
3002
? e . clientX - runtime . dragging . getBoundingClientRect ( ) . left
2995
3003
: 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 ;
3000
3008
3001
3009
// Handle resizing members list/user profile/search panel/activity panel/forum popout
3002
3010
if ( runtime . dragging . classList . contains ( modules . members ?. membersWrap )
0 commit comments