Browse Source

adjust defaults

master
jeffvli 3 years ago
parent
commit
105cb3a6a5
  1. 12
      src/components/settings/ListViewColumns.ts
  2. 4
      src/components/shared/setDefaultSettings.ts
  3. 2
      src/components/viewtypes/ListViewTable.tsx

12
src/components/settings/ListViewColumns.ts

@ -421,17 +421,6 @@ export const playlistColumnList = [
label: 'Title', label: 'Title',
}, },
}, },
{
label: 'Title (Combined)',
value: {
id: 'Title',
dataKey: 'combinedtitle',
alignment: 'left',
resizable: true,
width: 300,
label: 'Title (Combined)',
},
},
{ {
label: 'Visibility', label: 'Visibility',
value: { value: {
@ -454,7 +443,6 @@ export const playlistColumnPicker = [
{ label: 'Modified' }, { label: 'Modified' },
{ label: 'Owner' }, { label: 'Owner' },
{ label: 'Title' }, { label: 'Title' },
{ label: 'Title (Combined)' },
{ label: 'Track Count' }, { label: 'Track Count' },
{ label: 'Visiblity' }, { label: 'Visiblity' },
]; ];

4
src/components/shared/setDefaultSettings.ts

@ -16,7 +16,7 @@ const setDefaultSettings = (force: boolean) => {
} }
if (force || !settings.hasSync('cacheImages')) { if (force || !settings.hasSync('cacheImages')) {
settings.setSync('cacheImages', false); settings.setSync('cacheImages', true);
} }
if (force || !settings.hasSync('cacheSongs')) { if (force || !settings.hasSync('cacheSongs')) {
@ -146,7 +146,7 @@ const setDefaultSettings = (force: boolean) => {
} }
if (force || !settings.hasSync('playlistListRowHeight')) { if (force || !settings.hasSync('playlistListRowHeight')) {
settings.setSync('playlistListRowHeight', '40.0'); settings.setSync('playlistListRowHeight', '55.0');
} }
if (force || !settings.hasSync('playlistListColumns')) { if (force || !settings.hasSync('playlistListColumns')) {

2
src/components/viewtypes/ListViewTable.tsx

@ -381,7 +381,7 @@ const ListViewTable = ({
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
overflow: 'hidden', overflow: 'hidden',
paddingRight: !column.dataKey?.match( paddingRight: !column.dataKey?.match(
/starred|songCount/ /starred|songCount|duration/
) )
? '10px' ? '10px'
: undefined, : undefined,

Loading…
Cancel
Save