pqina / flip

⏳ The online version of the classic flip clock
https://pqina.nl/flip/
MIT License
874 stars 89 forks source link

Calculate font size on height #25

Closed siedi closed 3 years ago

siedi commented 3 years ago

Hi,

using this create plugin as a clock in my smart home dashboard

Bildschirmfoto 2021-01-16 um 16 12 52

While the auto-resize horizontally (width) works quite fine, it doesn't in the height. Thus, it overlaps if there is not enough space (see image).

Is there any chance to get that implemented as well?

Thanks Siedi

rikschennink commented 3 years ago

Hi that's not possible currently. You could wrap the flip clock in another element that is scaled relatively to the remaining height, give it the aspect ratio of the flip clock and the width should be limited correctly. Will require some CSS but should work.