From 07cbb193acbf8a7d3fb061bfd720b16b5b50881c Mon Sep 17 00:00:00 2001 From: aswanson-nr Date: Mon, 3 Jan 2022 16:48:14 -0800 Subject: [PATCH] feat: clean up image styling --- src/components/PackImg.js | 3 +- src/components/PackTile.js | 62 ++++++++++++++++-------------- src/pages/instant-observability.js | 15 +++++--- 3 files changed, 45 insertions(+), 35 deletions(-) diff --git a/src/components/PackImg.js b/src/components/PackImg.js index f6b70b3e3..1505e9491 100644 --- a/src/components/PackImg.js +++ b/src/components/PackImg.js @@ -24,7 +24,8 @@ const PackImg = ({ className, logoUrl, packName }) => { {packName} handlePackClick(id)} > - + + /> +
{ 287px ); - @media (max-width: 1350px) { - grid-template-columns: repeat(3, 1fr); - } + ${view === VIEWS.GRID && + css` + @media (max-width: 1350px) { + grid-template-columns: repeat(3, 1fr); + } - @media (max-width: 1180px) { - grid-template-columns: repeat(1, 1fr); - } + @media (max-width: 1180px) { + grid-template-columns: repeat(1, 1fr); + } + `} ${view === VIEWS.LIST && css`