mathigon / textbooks

Source code of Mathigon's interactive textbooks
https://mathigon.org
357 stars 154 forks source link

Fix Ulam Spiral diagram on mobile #19

Closed plegner closed 5 years ago

plegner commented 6 years ago

See https://mathigon.org/course/divisibility-and-primes#ulam

The diagram is currently broken on mobile:

screen shot 2018-04-25 at 12 37 44

vs

screen shot 2018-04-25 at 12 37 39
WilliamOConnell commented 5 years ago

Fixed by changing the max-width at the same breakpoints that change the cell size, although this type of layout might be better implemented with a table or CSS grids or something.

plegner commented 5 years ago

I definitely agree that CSS grid might be more appropriate here – but this seems to work for now. Thanks!