Luke, to CSS
@Luke@typo.social avatar

and how to move forward:

https://youtu.be/azs0xtt_tJc?si=xRvmIgjhMoBGKc8Q

I suggest we make it its own thing. Call it whatever we like: Bricks, stacks, castle, river, stones, etc.

@kevinpowell
@jensimmons

schizanon, to webdev
@schizanon@mastodon.social avatar

> there are big questions still being asked about how CSS should handle masonry-style layouts. Some people remain skeptical that this capability should be part of CSS Grid, and want it to instead be its own separate display type. Others are questioning whether or not this kind of layout is needed on the web at all — they aren’t sure that well-known websites will use it.

https://webkit.org/blog/15269/help-us-invent-masonry-layouts-for-css-grid-level-3/

#webDev #css #masonry #grid #frontend #webkit

anianimalsmoe, to webdev
@anianimalsmoe@sakurajima.moe avatar

, what's your favorite method of doing a Masonry-style layout? i.e. Multi-column posts in row-sequence like Pinterest or some Tumblr/Wordpress themes.

It's just so sad that this proposal for masonry-auto-flow is STILL NOT standardized, and Firefox appears to have dropped support: https://drafts.csswg.org/css-grid-3/#masonry-auto-flow

piefedadmin, to fediverse
@piefedadmin@join.piefed.social avatar

There are quite a few communities that are entirely image posts so presenting them as a vertical list of thumbnails doesn’t really make the best of what is there.

To improve on that I’ve made use of the common web design pattern called ‘masonry’, where the images are arraigned like bricks in a wall. Check it out:

https://piefed.social/c/aww@lemmy.world

https://piefed.social/c/artporn@lemm.ee (wide tile – best on large monitors)

On each tile there is the title of the post at the bottom which can be clicked on to view the post and it’s comments. This footer area could be improved with voting buttons and perhaps the number of comments, in future.

This doesn’t work as well for meme communities as memes often contain a lot of text, which gets squished. Perhaps there needs to be a 2 or 3 column version with larger thumbnails.

https://join.piefed.social/2024/01/21/optimizing-image-communities-introducing-grid-view-masonry-for-improved-image-display/

nickharrison, to london
nicod, to javascript French
@nicod@diaspodon.fr avatar

:
e-oj/Magic-Grid: A simple, lightweight Javascript library for dynamic grid layouts.
https://github.com/e-oj/Magic-Grid

https://shaarli.lerebooteux.fr

xianc78, to Israel
@xianc78@gameliberty.club avatar

This guy correctly predicted that there would be a war in Israel in 2023, last year. If you think Gematria is bullshit, watch this video and think again.

https://vid.puffyan.us/watch?v=xEwZZpLY5Jg

cheeaun, to random
@cheeaun@mastodon.social avatar

Very early sneak-peek experiment, still on my local dev, NOT dev site. Might stash it away if it's too much effort.

Use-cases not handled (yet):

  • Filtered posts
  • Sensitive media
  • Need next/prev nav in media modal, on top of existing next/prev of multiple media in a post, else user will need to click on a media one-by-one
  • Aspect ratio?
  • Audio-only media looks weird here
  • Customizable grid dimension? 😩
  • Masonry layout instead? 😩

cheeaun,
@cheeaun@mastodon.social avatar

If there's native CSS masonry support in browsers, it would look like this. Only Safari Technology Preview supports it now https://caniuse.com/?search=masonry

Code looks like this:

display: grid;  
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));  
grid-template-rows: masonry;  
masonry-auto-flow: pack;  
gap: 2px;  

Phanpy site, showing grid of media posts from hashtag timeline from mastodon.social. This time it's rendered with masonry layout, which also can auto-adjust the number of columns as the viewport width is resized.

Heliograph, to random
@Heliograph@mastodon.au avatar

:akko_fistup: love it when they win

Heliograph,
@Heliograph@mastodon.au avatar
lukem, to webdev
@lukem@hachyderm.io avatar

Dear lazywebs,

Is there a ready-made library-agnostic solution that combines both:

  1. masonry layout
  2. lazy loading of images

and doesn't require too much hacking?

It has to work both in Firefox and Chrome and I don't mind it using client-side JS. Bonus points if it's single-digit kilobytes minified.

mrundkvist, to books Swedish
@mrundkvist@archaeo.social avatar

For years I enjoyed reading David Hartwell's anthologies. Even though he thought keystone meant cornerstone when writing the intro to "The Dark Descent" (1987).

schizanon, to mastodon
@schizanon@mas.to avatar

A grid view was my first goal for https://schizo.social. clients all have so much dead-space, and I have wide screens so I want the content to fill them. I use social media for novelty, and without an algorithm it takes a LOT of scrolling to find anything interesting in the federated feed.

schizanon,
@schizanon@mas.to avatar

But the content of statuses varies a lot, so using a to achieve it leaves wide gaps in the rows. The only solution for that is to truncate the content with max-heights (there's a mode for but it's only supported by and then only with an about:config flag).

So I went with instead which are widely supported and achieve the masonry effect. The problem with those is that content is laid out chronologically down the , not across the rows.

schizanon, to firefox
@schizanon@mas.to avatar

Only supports the layout for and all the other should be ashamed of themselves for not implementing it yet! https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Masonry_layout#creating_a_masonry_layout

schizanon,
@schizanon@mas.to avatar
janriemer, to firefox

Woah :awesome: did you know that has an implementation of masonry layout?

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Masonry_Layout

It is only implemented in Firefox (behind a flag) and 17 (Technical Preview) at the moment, though (one more reason to ditch Chr**e and Ed*e if you ask me).

https://caniuse.com/?search=masonry

unfa, to gamedev
@unfa@mastodon.social avatar

Texture baking before it was cool.

A.k.a "what you do to get more detail, when using more geometry is too expansive".
Works the same in as it does in ;)

If you don't see it: look at how the blue windows with plaster flowers inside the dome are... not actually made from plaster, but painted with a fake perspective and lighting to make it look real from a certain point of view.

A close-up reveals the trickery.

Location: some town on Provance, France, IDK the name.

image/jpeg
image/jpeg

mkwadee, to random
@mkwadee@mastodon.org.uk avatar

Another week on and another and . This one is from and is quite an unusual dam constructed of . It was opened in the first decade of the twentieth century. A couple of decades ago, work was done to ensure the spillway could handle flood events of increasing magnitude as a result of . As you can see there was some flow today over it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • thenastyranch
  • ethstaker
  • osvaldo12
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • ngwrru68w68
  • slotface
  • GTA5RPClips
  • rosin
  • megavids
  • cubers
  • everett
  • cisconetworking
  • tacticalgear
  • anitta
  • khanakhh
  • normalnudes
  • Durango
  • modclub
  • tester
  • provamag3
  • Leos
  • lostlight
  • All magazines