Skip to content

Commit

Permalink
chore: ensure that images are always the same width
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed Jun 10, 2021
1 parent 74b880a commit e71b5f3
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/pages/observability-packs.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,19 +248,16 @@ const ObservabilityPacksPage = ({ data, location }) => {
}}
css={css`
display: block;
width: 100%;
padding: 0 5%;
height: 200px;
background-color: var(--color-white);
margin: auto;
object-fit: scale-down;
width: ${view === VIEWS.GRID ? 100 : 25}%;
padding: 0 ${view === VIEWS.GRID ? 5 : 1}%;
margin: ${view === VIEWS.GRID ? 'auto' : 0};
${view === VIEWS.LIST &&
css`
width: 25%;
padding: 0 1%;
max-height: 150px;
margin: 0;
@media (max-width: 1080px) {
display: none;
Expand All @@ -271,6 +268,15 @@ const ObservabilityPacksPage = ({ data, location }) => {
<div
css={css`
padding: 1em;
${view === VIEWS.LIST &&
css`
width: 75%;
@media (max-width: 1080px) {
width: 100%;
}
`}
`}
>
<h4>
Expand Down

0 comments on commit e71b5f3

Please sign in to comment.