getwilds / getwilds.github.io

WILDS Website
https://getwilds.org/
Creative Commons Zero v1.0 Universal
0 stars 1 forks source link

bslib::cards images are stretched #8

Closed seankross closed 6 months ago

seankross commented 6 months ago

bslib::card_image by default seems to force the image to fill the entire card, which makes it look stretched out. I cooked up the abomination below to replace bslib::card_image, but maybe there's a better way?

div(style = "display: flex; justify-content: center; align-items: center; height: 100%;",
        tags$a(href = "packages.html",
          img(src = "assets/WDLlogo.png", 
              style = "max-width: 100%; height: auto;"))
    )
seankross commented 6 months ago

Related to #5 and #7