Merge branch 'dev'

This commit is contained in:
thororen1234 2024-09-01 20:50:13 -04:00
commit d488361c66
3 changed files with 23 additions and 6 deletions

View file

@ -1,3 +0,0 @@
# Always Expand Roles
Always expands the role list in profile popouts

View file

@ -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);
}
});

View file

@ -0,0 +1,3 @@
[aria-label]:has(> [class^="collapseButton_"]) {
display: none
}