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 46b1f53
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions site/gdocs/components/LatestDataInsights.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ html:not(.js) .latest-data-insights__card,
color: $blue-90;
background: $blue-20;
padding: 16px;
align-items: flex-start;

.article-block__text {
@include body-3-medium;
Expand Down Expand Up @@ -85,22 +86,30 @@ html:not(.js) .latest-data-insights__card,

.latest-data-insights__card-left {
display: flex;
flex: 1 1 410px;
align-items: flex-start;
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 46b1f53

Please sign in to comment.