Fix ChannelTabs Patch & Drag
This commit is contained in:
parent
608cddd508
commit
c594c7bc6e
4 changed files with 13 additions and 6 deletions
|
|
@ -112,8 +112,6 @@ export default definePlugin({
|
|||
authors: [EquicordDevs.ThePirateStoner],
|
||||
dependencies: ["MessagePopoverAPI"],
|
||||
settings,
|
||||
contextMenus: {
|
||||
},
|
||||
|
||||
start() {
|
||||
addMessagePopoverButton("DecodeBase64", msg => {
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ export default definePlugin({
|
|||
{
|
||||
find: ".COLLECTIBLES_SHOP_FULLSCREEN))",
|
||||
replacement: {
|
||||
match: /(?<=\?void 0:(\i)\.channelId.{0,500}return)((.{0,15})"div",{.*?\])(?=\}\)\}\)\}\)\})/,
|
||||
replace: "$3$self.render,{currentChannel:$1,children:$2})"
|
||||
match: /(\?void 0:(\i)\.channelId.{0,300})"div",{/,
|
||||
replace: "$1$self.render,{currentChannel:$2,"
|
||||
}
|
||||
},
|
||||
// intercept channel navigation to switch/create tabs
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
-webkit-app-region: drag;
|
||||
}
|
||||
|
||||
.platform-osx .vc-channeltabs-tab-container {
|
||||
|
|
@ -59,6 +60,7 @@
|
|||
padding: 0.35rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
.vc-channeltabs-separator {
|
||||
|
|
@ -263,4 +265,11 @@
|
|||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
.vc-channeltabs-tab-container .vc-channeltabs-new-button,
|
||||
.vc-channeltabs-tab-container .vc-channeltabs-hoverable,
|
||||
.vc-channeltabs-tab-container .vc-channeltabs-button,
|
||||
.vc-channeltabs-tab-container svg {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@ export default definePlugin({
|
|||
replace: (m, channel) => `${m}if($self.isHiddenChannel(${channel}))break;`
|
||||
},
|
||||
{
|
||||
match: /(?<="renderHeaderBar",\(\)=>{.+?hideSearch:(\i)\.isDirectory\(\))/,
|
||||
match: /(?<="renderHeaderBar",\i=>{.+?hideSearch:(\i)\.isDirectory\(\))/,
|
||||
replace: (_, channel) => `||$self.isHiddenChannel(${channel})`
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue