add new table to album detail

This commit is contained in:
jeffvli
2025-11-16 13:53:04 -08:00
parent 31d9ab048d
commit f366b50550
10 changed files with 1318 additions and 194 deletions
+30 -1
View File
@@ -218,7 +218,7 @@ const GeneralSettingsSchema = z.object({
artistBackgroundBlur: z.number(),
artistItems: z.array(SortableItemSchema(ArtistItemSchema)),
buttonSize: z.number(),
disabledContextMenu: z.record(z.boolean()),
disabledContextMenu: z.record(z.string(), z.boolean()),
doubleClickQueueAll: z.boolean(),
externalLinks: z.boolean(),
followSystemTheme: z.boolean(),
@@ -655,6 +655,35 @@ const initialState: SettingsState = {
globalMediaHotkeys: false,
},
lists: {
['albumDetail']: {
display: ListDisplayType.TABLE,
grid: {
itemGap: 'md',
itemsPerRow: 6,
itemsPerRowEnabled: false,
rows: [],
},
itemsPerPage: 100,
pagination: ListPaginationType.INFINITE,
table: {
autoFitColumns: true,
columns: pickTableColumns({
autoSizeColumns: [],
columns: SONG_TABLE_COLUMNS,
enabledColumns: [
TableColumn.TRACK_NUMBER,
TableColumn.TITLE,
TableColumn.DURATION,
TableColumn.USER_FAVORITE,
],
}),
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: false,
enableVerticalBorders: false,
size: 'compact',
},
},
fullScreen: {
display: ListDisplayType.TABLE,
grid: {