diff --git a/dashboard/src/routes/Dash/Group/Group.svelte b/dashboard/src/routes/Dash/Group/Group.svelte index dd9c54a9..3627427e 100644 --- a/dashboard/src/routes/Dash/Group/Group.svelte +++ b/dashboard/src/routes/Dash/Group/Group.svelte @@ -109,9 +109,16 @@ isPublic: isPublic, type: 'member', isMain: false, - itemsPerPage: listView === 'card' ? 24 : 25 + itemsPerPage: getDefaultItemsPerpage() }; + function getDefaultItemsPerpage(): number { + if (listView === 'card') return 24; + else if (settings && settings.accessibility && settings.accessibility.expandedcards) + return 10; + else return 25; + } + async function copyShortLink(event?) { if (event) { let ctrlDown = event.ctrlKey||event.metaKey; // mac support diff --git a/dashboard/src/routes/Dash/Member/Member.svelte b/dashboard/src/routes/Dash/Member/Member.svelte index 25a67930..70b8e8fc 100644 --- a/dashboard/src/routes/Dash/Member/Member.svelte +++ b/dashboard/src/routes/Dash/Member/Member.svelte @@ -108,9 +108,16 @@ isPublic: isPublic, type: 'group', isMain: false, - itemsPerPage: listView === 'card' ? 24 : 25 + itemsPerPage: getDefaultItemsPerpage() }; + function getDefaultItemsPerpage(): number { + if (listView === 'card') return 24; + else if (settings && settings.accessibility && settings.accessibility.expandedcards) + return 10; + else return 25 + } + async function copyShortLink(event?) { if (event) { let ctrlDown = event.ctrlKey||event.metaKey; // mac support