mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-03 17:00:53 +00:00
FIX - use five app rows per home page
This commit is contained in:
@@ -11,11 +11,11 @@ describe('page clamping', () => {
|
||||
expect(
|
||||
paginateItems(
|
||||
Array.from({ length: 21 }, (_, index) => index),
|
||||
16,
|
||||
20,
|
||||
),
|
||||
).toEqual([
|
||||
Array.from({ length: 16 }, (_, index) => index),
|
||||
[16, 17, 18, 19, 20],
|
||||
Array.from({ length: 20 }, (_, index) => index),
|
||||
[20],
|
||||
])
|
||||
})
|
||||
})
|
||||
|
||||
@@ -10,7 +10,7 @@ import { usePhoneStore } from '@/stores/phone'
|
||||
import type { PhoneAppCategory, PhoneAppDefinition } from '@/types/apps'
|
||||
import { paginateItems } from '@/utils/pages'
|
||||
|
||||
const APPS_PER_HOME_PAGE = 16
|
||||
const APPS_PER_HOME_PAGE = 20
|
||||
const APP_LIBRARY_CATEGORIES: PhoneAppCategory[] = [
|
||||
'games',
|
||||
'productivity',
|
||||
|
||||
Reference in New Issue
Block a user