Skip to content

Commit

Permalink
✨ set width on related-charts list items
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Jan 17, 2025
1 parent 9423b24 commit 4ebfef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ourworldindata/grapher/src/chart/ChartUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function byHoverThenFocusState(series: {
/**
* Given a URL for a CF function grapher thumbnail, generate a srcSet for the image at different widths
* @param defaultSrc - `https://ourworldindata.org/grapher/thumbnail/life-expectancy.png?tab=chart`
* @returns srcSet - `https://ourworldindata.org/grapher/thumbnail/life-expectancy.png?tab=chart 850w, https://ourworldindata.org/grapher/thumbnail/life-expectancy.png?tab=chart&imWidth=1700 1700w`
* @returns srcSet - `https://ourworldindata.org/grapher/thumbnail/life-expectancy.png?tab=chart&imWidth=850 850w, https://ourworldindata.org/grapher/thumbnail/life-expectancy.png?tab=chart&imWidth=1700 1700w`
*/
export function generateGrapherImageSrcSet(defaultSrc: string): string {
const url = Url.fromURL(defaultSrc)
Expand Down
1 change: 1 addition & 0 deletions site/blocks/related-charts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
@include image-shadow;
margin-bottom: $vertical-spacing * 0.5;
border: 1px solid transparent;
width: 100%;
}

a {
Expand Down

0 comments on commit 4ebfef2

Please sign in to comment.