mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 19:53:41 -05:00
Merge branch 'dev'
This commit is contained in:
commit
d488361c66
3 changed files with 23 additions and 6 deletions
|
@ -1,3 +0,0 @@
|
|||
# Always Expand Roles
|
||||
|
||||
Always expands the role list in profile popouts
|
|
@ -16,9 +16,20 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { migratePluginSettings } from "@api/Settings";
|
||||
import { definePluginSettings, migratePluginSettings } from "@api/Settings";
|
||||
import { disableStyle, enableStyle } from "@api/Styles";
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
|
||||
import style from "./style.css?managed";
|
||||
|
||||
const settings = definePluginSettings({
|
||||
hideArrow: {
|
||||
type: OptionType.BOOLEAN,
|
||||
default: false,
|
||||
description: "Hide Arrow",
|
||||
},
|
||||
});
|
||||
|
||||
migratePluginSettings("AlwaysExpandRoles", "ShowAllRoles");
|
||||
export default definePlugin({
|
||||
|
@ -33,5 +44,11 @@ export default definePlugin({
|
|||
replace: (_, rest, setExpandedRoles) => `${rest}!0)`
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
start() {
|
||||
if (settings.store.hideArrow) enableStyle(style);
|
||||
},
|
||||
stop() {
|
||||
if (settings.store.hideArrow) disableStyle(style);
|
||||
}
|
||||
});
|
||||
|
|
3
src/plugins/alwaysExpandRoles/style.css
Normal file
3
src/plugins/alwaysExpandRoles/style.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
[aria-label]:has(> [class^="collapseButton_"]) {
|
||||
display: none
|
||||
}
|
Loading…
Reference in a new issue