65

Inb4 youtube is bad for a million other reasons. Yes I know, most of them are ameliorated by extremely heavy adblocking, that's not what this is about.

In the last couple days, youtube has completely forgotten how to format a basic grid layout. Look at those inconsistent gaps between thumbnails, look at those misaligned columns, what the fuck is going on here?

you are viewing a single comment's thread
view the rest of the comments
[-] sleeplessone@lemmy.ml 3 points 3 months ago

What I suspect is happening here is that it's using a flexbox instead of a grid. I'm guessing it has a flex direction of row (horizontal left to right), uses flex wrap, and has each video thumbnail have a flex basis to keep them around the same size. It probably makes it easier to look good enough at most screen sizes without needing to have a bunch of media queries change the number of columns at different screen sizes, at the cost of things not always being perfectly aligned. Probably a good tradeoff compared to the alternative tbh.

this post was submitted on 07 Aug 2024
65 points (100.0% liked)

chapotraphouse

13538 readers
770 users here now

Banned? DM Wmill to appeal.

No anti-nautilism posts. See: Eco-fascism Primer

Gossip posts go in c/gossip. Don't post low-hanging fruit here after it gets removed from c/gossip

founded 3 years ago
MODERATORS