Skip to content

Conversation

@sivakusayan
Copy link

@sivakusayan sivakusayan commented Aug 11, 2024

Issue

Previously, there would be overlaps between the SVG rectangles and the text besides them at certain zoom levels. For example, below is a screenshot of the web page on Chromium at ~150% zoom:

The interactive latencies website on Chrome at 150% zoom. There are overlaps between the SVG rectangles and the accompanying text.

In addition, the site would also look extremely zoomed out and be hard to read on mobile devices. For example, here is how the website renders on an iPhone SE (albeit simulated by Chromium developer tools):

A simulated rendering of the interactive latencies website on an iPhone SE. The site is so zoomed out that it only takes up half of the screen, and there are overlaps between the SVG rectangles and the accompanying text.

Fix

We use the built-in CSS grid and flexbox layouts instead of Bootstrap's utility classes to make the website responsive, both of which have good support on major browsers. This fixes the SVG overlap issue, and displays the website reasonably well on mobile devices, as demonstrated by this video:

Screen.Recording.2024-08-11.at.4.46.34.PM.1.mov

Changes were tested on Chromium, Firefox, and Webkit on macOS. I can test this change on Windows and Linux once I get home, but I'd be surprised if there were issues on those platforms.

@sivakusayan sivakusayan changed the title Fix responsive issues on certain zoom levels and mobile devices Fix responsiveness issues on certain zoom levels and mobile devices Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant