Skip to content

Commit

Permalink
Maintain latest data insights image ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyi committed Jul 31, 2024
1 parent 23969c0 commit 29cf655
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions site/gdocs/components/LatestDataInsights.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,29 @@ html:not(.js) .latest-data-insights__card,

.latest-data-insights__card-left {
display: flex;
flex: 1 1 410px;
height: 100%;

img {
height: 100%;
width: auto;
max-width: initial;
}

@include md-down {
flex: initial;
height: initial;

img {
max-width: 100%;
height: auto;
}
}
}

.latest-data-insights__card-right {
display: flex;
flex-direction: column;
flex: 1 0 379px;

@include md-down {
flex: 1 1 0;
min-height: 0;
}
height: 100%;
min-height: 0;
}

.latest-data-insights__card-body {
Expand Down

0 comments on commit 29cf655

Please sign in to comment.