Adjust tile grid in categories and channel pages

This commit is contained in:
Raphael Wickihalder 2022-04-07 19:54:41 +02:00
parent 14f3195a7f
commit 010b5c81f4
No known key found for this signature in database
GPG key ID: 05179BB92383243D

View file

@ -142,7 +142,7 @@ function ClaimListDiscover(props: Props) {
header,
name,
claimType,
pageSize,
// pageSize,
defaultClaimType,
streamType,
defaultStreamType = SIMPLE_SITE ? [CS.FILE_VIDEO, CS.FILE_AUDIO] : undefined, // add param for DEFAULT_STREAM_TYPE
@ -258,7 +258,8 @@ function ClaimListDiscover(props: Props) {
const channelIdsInUrl = urlParams.get(CS.CHANNEL_IDS_KEY);
const channelIdsParam = channelIdsInUrl ? channelIdsInUrl.split(',') : channelIds;
const feeAmountParam = urlParams.get('fee_amount') || feeAmount;
const originalPageSize = pageSize || CS.PAGE_SIZE;
// const originalPageSize = pageSize || CS.PAGE_SIZE;
const originalPageSize = 12;
const dynamicPageSize = isLargeScreen ? Math.ceil(originalPageSize * (3 / 2)) : originalPageSize;
const historyAction = history.action;