From 4badedaeb022f5bf1e52767f6af6a5071fe31f1c Mon Sep 17 00:00:00 2001 From: Neeraj Sharma <50868725+nsharma123@users.noreply.github.com> Date: Fri, 10 Jun 2022 10:41:23 +0530 Subject: [PATCH] Increase default cell width to fix layout issue on rendertron (#4) * Increase default cell width to fix layout issue --- package.json | 2 +- src/infinite-scroller.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5a4fed3..87f1c4e 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "An infinite scroller web component.", "license": "AGPL-3.0-only", "author": "Internet Archive", - "version": "0.1.2", + "version": "0.1.3", "main": "dist/index.js", "module": "dist/index.js", "scripts": { diff --git a/src/infinite-scroller.ts b/src/infinite-scroller.ts index fd36cf4..53625a9 100644 --- a/src/infinite-scroller.ts +++ b/src/infinite-scroller.ts @@ -380,9 +380,9 @@ export class InfiniteScroller const sentinelHeightCss = css`var(--infiniteScrollerSentinelDistanceFromEnd, 200rem)`; const rowGapSizeCss = css`var(--infiniteScrollerRowGap, 1.7rem)`; const colGapSizeCss = css`var(--infiniteScrollerColGap, 1.7rem)`; - const cellMinWidth = css`var(--infiniteScrollerCellMinWidth, 10rem)`; + const cellMinWidth = css`var(--infiniteScrollerCellMinWidth, 16rem)`; const cellMaxWidth = css`var(--infiniteScrollerCellMaxWidth, 1fr)`; - const cellMinHeight = css`var(--infiniteScrollerCellMinHeight, 10rem)`; + const cellMinHeight = css`var(--infiniteScrollerCellMinHeight, 22.5rem)`; const cellMaxHeight = css`var(--infiniteScrollerCellMaxHeight, none)`; const cellOutline = css`var(--infiniteScrollerCellOutline, 0)`;