mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
feat: icon only sidebar
This commit is contained in:
@@ -30,6 +30,18 @@ export class StorageChangeHandler {
|
||||
"subjectfilters",
|
||||
FilterUpcomingAssessments.bind(this),
|
||||
);
|
||||
settingsState.register(
|
||||
"iconOnlySidebar",
|
||||
this.handleIconOnlySidebarChange.bind(this),
|
||||
);
|
||||
}
|
||||
|
||||
private handleIconOnlySidebarChange(newValue: boolean | undefined) {
|
||||
if (newValue) {
|
||||
document.body.classList.add("icon-only-sidebar");
|
||||
} else {
|
||||
document.body.classList.remove("icon-only-sidebar");
|
||||
}
|
||||
}
|
||||
|
||||
private handleDarkModeChange() {
|
||||
|
||||
Reference in New Issue
Block a user