Open dragonstyle opened 1 year ago
I think that this item is likely more specifically creating a new type of listing layout that permits flexible grid sized (per the attached conversation). Moving to 1.4
Can I please ask if there's a follow up to this? I seem to have a problem that I think is related to this on this site; images are rescaled but the aspect ratio is not respected. As you make the screen smaller, then 2 things happen:
I seem to have a problem that I think is related to this on this site; images are rescaled but the aspect ratio is not respected.
I think switching to max-height
as suggested here really won't fix the width issue with this page - it merely allows the image height to change in order to preserve the aspect ratio. For example:
But, this has the effect of reducing the alignment of items within the grid, as titles and other data are in different spots, which I don't think we want in our default grid layout. Instead, perhaps you could consider changing the number of columns using grid-columns
under listing (it defaults to 3) or perhaps changing the layout width of the page that this grid is on using page-layout: full
which will make the content area wider.
As discussed initially in the discussion. The best option would likely be around what Masonry.js does. https://masonry.desandro.com/ (This would also bring "image gallerie" to Quarto)
Thanks both. I can look into this more closely, but I guess using masonry would basically amount to hacking the complied html files to add the relevant bits (including potentially a java script)?
Discussed in https://github.com/quarto-dev/quarto-cli/discussions/2990