feat: check screen size to enable or disable settings

+ redesign (again!) the playlist cards
This commit is contained in:
geoffrey45
2022-09-17 14:24:05 +03:00
parent fca59751c4
commit 5130f85300
13 changed files with 50 additions and 36 deletions
+2 -1
View File
@@ -5,9 +5,10 @@ const settings = useSettingsStore;
const extend_to_full_width: Setting = {
title: "Extend app to full screen width",
type: SettingType.switch,
type: SettingType.binary,
source: () => settings().extend_width,
action: () => settings().toggleExtendWidth(),
inactive: () => !settings().extend_width_enabled,
};
export default [extend_to_full_width];
+1 -1
View File
@@ -5,7 +5,7 @@ const settings = useSettingsStore;
const use_alt_np: Setting = {
title: "Use alternate now playing card",
type: SettingType.switch,
type: SettingType.binary,
source: () => settings().use_alt_np,
inactive: () => settings().disable_show_alt_np,
action: () => settings().toggleUseRightNP(),
+1 -1
View File
@@ -5,7 +5,7 @@ const settings = useSettingsStore;
const use_sidebar: Setting = {
title: "Use right sidebar",
type: SettingType.switch,
type: SettingType.binary,
source: () => settings().use_sidebar,
action: () => settings().toggleDisableSidebar(),
};