Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flexbox and CSS Grid Layout Options for Gallery Module #365

Open
MrFent opened this issue May 8, 2024 · 2 comments
Open

Flexbox and CSS Grid Layout Options for Gallery Module #365

MrFent opened this issue May 8, 2024 · 2 comments

Comments

@MrFent
Copy link

MrFent commented May 8, 2024

With the new Box Module's release, people are learning more about and using Flex and CSS Grid. I would like to see these options available in the native Gallery module. Currently, the Gallery module has two layout options:

  • Collage
  • Thumbs

In Collage mode, the images are placed in a mosiacflow column from top to bottom (See screenshot)

With the images loading top to bottom in each column, there isn't any way to use custom CSS to override the layout using Flexbox or CSS Grid.

In Thumbs mode, all of the images are placed in a single parent div. However, each image is set to position:absolute dynamically based on screen size. (See screenshot)

It might be possible to use !important CSS to override these dynamic position, top, and left styles, and apply custom Flexbox or CSS Grid styling. However, in this mode, each image is only showing the 150x150 thumbnail. There is no way to get it to show the full image.

That's why I propose adding Flexbox and CSS Grid to the Gallery module's Layout options. Each new mode could use the same grid and flexbox options that are in the Box module.

@craigcpaterson
Copy link

Great idea. It should now be a pre-requisite that any modules which provide layout options should have the option to use Flexbox and CSS Grid going forward.

@studioavanti
Copy link

100%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants