From 0e717ce76529ca4a3c5523714654a3f15e091e4c Mon Sep 17 00:00:00 2001 From: aswanson-nr Date: Thu, 30 Dec 2021 09:36:04 -0800 Subject: [PATCH] feat: initial quickstart tile changes --- src/components/PackTile.js | 10 ++++++++-- src/pages/instant-observability.js | 9 ++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/components/PackTile.js b/src/components/PackTile.js index 8dfaf4ba1..89cf240e9 100644 --- a/src/components/PackTile.js +++ b/src/components/PackTile.js @@ -93,10 +93,10 @@ const PackTile = ({ logoUrl={logoUrl} packName={title || name} css={css` - height: 200px; + height: 100px; object-fit: scale-down; width: ${view === VIEWS.GRID ? 100 : 25}%; - padding: 0 ${view === VIEWS.GRID ? 5 : 1}%; + padding: 5% ${view === VIEWS.GRID ? 5 : 1}%; margin: 0 auto 10px; .dark-mode & { @@ -122,6 +122,7 @@ const PackTile = ({ css={css` padding: 1em; flex: 1 1 auto; + min-height: 0; /* needed to stop the summary text from pushing outside the flexbox */ ${view === VIEWS.LIST && css` width: 100%; @@ -140,6 +141,10 @@ const PackTile = ({ css={css` font-size: 0.875rem; color: var(--secondary-text-color); + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; `} > {summary || 'No summary provided'} @@ -148,6 +153,7 @@ const PackTile = ({
{
{