Skip to content

Masonry unification #172

Description

@jonathanwestin

Right now we are using several different masonry libraries, which make it cumbersome to jump between different projects and applying common styling. We should evaluate our different masonry implementation and decide on one or two (if needed) to standardise around.

Basic features:

  1. As part of this i would like that all mum projects have the SHFA-masonry-function of fetching the height of the thumbs before rendering for more a more stable layouting.
  2. All should have some sort of loader that is triggered both at intital load and every time new images are loaded (for instance for infinity scroll). We have this in Saint Sophia gallery.
  3. Resizing the screen should result in smooth resizing of the images in the gallery and addition or subtraction of columns (dh-portal does this beautifully, and also the new SHFA gallery).

Special features:

  1. support infinite scroll (primary reason why we might need two different masonry libraries)
  2. virtualisation (or whatever fancy thing Tristan learned)

goal: use the same library and the same css-classes (and HTML markup) for as many of our projects as possible and that this solution is as robust as possible.

Projects that should be somewhat in sync when it comes to masonry features:
Extended Rephotography
Etruscan Chamber Tombs
Jubileum
Saint Sophia
Sonora

SHFA
DH-portal
Litteraturlaboratoriet

Metadata

Metadata

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions