uselagoon / lagoon-ui

Apache License 2.0
6 stars 2 forks source link

feat: add restoresize to download button #198

Closed shreddedbacon closed 7 months ago

shreddedbacon commented 7 months ago

Basic support for https://github.com/uselagoon/lagoon/pull/3599 image

tobybellwood commented 7 months ago

This works as expected, only minor nit is that we may need to treat the longer labels splitting over the two lines (anything in the 100's (or 10's with MB) will split onto the second line

image

shreddedbacon commented 7 months ago

Yeah, happy for someone with better skills in the UI to take this over

DaveDarsa commented 7 months ago
backups

The download button text size adjusts to its container ( shrinks in this case ) and the widths are maintained, text doesn't break. it does get set back to defaults once the screen is small enough.

I wonder if this is the way to go?

tobybellwood commented 7 months ago

I think this makes sense - they don;t get too small because of the decimal rounding image