SHC: Small improvements (#907)
This commit is contained in:
parent
336c7bdd5e
commit
1f7ec93a24
|
@ -309,6 +309,11 @@ export default definePlugin({
|
||||||
match: /"more-options-popout"\)\);if\((?<=function \i\((\i)\).+?)/,
|
match: /"more-options-popout"\)\);if\((?<=function \i\((\i)\).+?)/,
|
||||||
replace: (m, props) => `${m}!${props}.inCall&&$self.isHiddenChannel(${props}.channel,true)){}else if(`
|
replace: (m, props) => `${m}!${props}.inCall&&$self.isHiddenChannel(${props}.channel,true)){}else if(`
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// Remove invite users button for the HiddenChannelLockScreen
|
||||||
|
match: /"popup".{0,100}?if\((?<=(\i)\.channel.+?)/,
|
||||||
|
replace: (m, props) => `${m}(${props}.inCall||!$self.isHiddenChannel(${props}.channel,true))&&`
|
||||||
|
},
|
||||||
{
|
{
|
||||||
// Render our HiddenChannelLockScreen component instead of the main voice channel component
|
// Render our HiddenChannelLockScreen component instead of the main voice channel component
|
||||||
match: /this\.renderVoiceChannelEffects.+?children:(?<=renderContent=function.+?)/,
|
match: /this\.renderVoiceChannelEffects.+?children:(?<=renderContent=function.+?)/,
|
||||||
|
@ -326,8 +331,8 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Disable bad CSS class which mess up hidden voice channels styling
|
// Disable bad CSS class which mess up hidden voice channels styling
|
||||||
match: /callContainer,(?<=(\i)=\i\.channel.+?\(\)\.callContainer,)/,
|
match: /callContainer,(?<=\(\)\.callContainer,)/,
|
||||||
replace: (m, channel) => `${m}$self.isHiddenChannel(${channel},true)?"":`
|
replace: '$&!this.props.inCall&&$self.isHiddenChannel(this.props.channel,true)?"":'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
.shc-lock-screen-default-emoji-container > [class^="emojiContainer"] {
|
.shc-lock-screen-default-emoji-container > [class^="emojiContainer"] {
|
||||||
background: var(--bg-overlay-3, var(--background-secondary));
|
background: var(--bg-overlay-3, var(--background-secondary));
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 3px 4px;
|
padding: 5px 6px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue