openstax / os-webview

:books: Front-end web application for the OpenStax web site
28 stars 3 forks source link

fix responsive cards #2661

Closed TomWoodward closed 1 month ago

TomWoodward commented 1 month ago

these template repeat options are still a bit like sorcery to me, but this combination of min-max and min-content seems to achieve what i want where it uses the card-size unless that is larger than the window, then it uses the max available space.

you can see what i'm talking about on this page in the "short text" section at the bottom, the text begins to overflow the window when its too small. i think this was always happening but typically the card size was small enough that it wasn't obviously a problem.