mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-22 10:26:33 +02:00
add vertical album group layout
This commit is contained in:
@@ -488,6 +488,7 @@ export const GeneralSettingsSchema = z.object({
|
||||
albumGroupImageSize: z.number(),
|
||||
albumGroupItems: z.array(SortableItemSchema(AlbumGroupItemSchema)),
|
||||
albumGroupShowFavoriteRating: z.boolean(),
|
||||
albumGroupVerticalLayout: z.boolean(),
|
||||
artistBackground: z.boolean(),
|
||||
artistBackgroundBlur: z.number(),
|
||||
artistItems: z.array(SortableItemSchema(ArtistItemSchema)),
|
||||
@@ -1211,6 +1212,7 @@ const initialState: SettingsState = {
|
||||
albumGroupImageSize: 0,
|
||||
albumGroupItems,
|
||||
albumGroupShowFavoriteRating: true,
|
||||
albumGroupVerticalLayout: true,
|
||||
artistBackground: true,
|
||||
artistBackgroundBlur: 3,
|
||||
artistItems,
|
||||
@@ -2727,6 +2729,9 @@ export const useAlbumGroupImageSize = () =>
|
||||
export const useAlbumGroupShowFavoriteRating = () =>
|
||||
useSettingsStore((state) => state.general.albumGroupShowFavoriteRating);
|
||||
|
||||
export const useAlbumGroupVerticalLayout = () =>
|
||||
useSettingsStore((state) => state.general.albumGroupVerticalLayout);
|
||||
|
||||
export const useVolumeWidth = () => useSettingsStore((state) => state.general.volumeWidth, shallow);
|
||||
|
||||
export const useFollowCurrentSong = () =>
|
||||
|
||||
Reference in New Issue
Block a user