owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.37k stars 230 forks source link

✨ (grapher) use full width for the subtitle #3638

Closed sophiamersmann closed 3 months ago

sophiamersmann commented 4 months ago

Use the full width for the subtitle on smaller screens. This saves space on mobile if the title is short and the subtitle is long.

Alternatively, we could make it so that the subtitle wraps under the OWID logo. I'm sure there is a way to do it, but it would be more complex than the current solution, and I think the current solution is good enough.

Example chart: https://ourworldindata.org/grapher/fishing-pressure-by-taxa

Before After
Screenshot 2024-05-23 at 10 15 50 Screenshot 2024-05-23 at 10 15 55
sophiamersmann commented 4 months ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sophiamersmann and the rest of your teammates on Graphite Graphite

owidbot commented 4 months ago
Quick links (staging server): Site Admin Wizard

Login: ssh owid@staging-site-subtitle-full-width

SVG tester: Number of differences (default views): 0 ✅ Number of differences (all views): 0 ✅

Edited: 2024-06-04 17:52:15 UTC Execution time: 1.22 seconds

notion-workspace[bot] commented 4 months ago

Use full-width for the subtitle