Skip to content

1.8.0

Choose a tag to compare

@c-kick c-kick released this 14 May 15:55

Responsive font sizing controls

This release adds advanced controls for making text more readable on larger cards while preserving the compact default behavior. This feature was suggested by @khenderick in pr #21.

Added

  • Added font_size_max to raise or lower the responsive text-size ceiling.
  • Added font_size_scale to tune how quickly text grows with available row height.
  • Added CSS custom properties for theme/card-mod overrides:
    • --hnl-flow-bars-font-size-min
    • --hnl-flow-bars-font-size-fluid
    • --hnl-flow-bars-font-size-max
    • --hnl-flow-bars-font-size
    • --hnl-flow-bars-font-size-scale

The new font options can be found in the "Advanced" panel in the "Appearance" section of the card's visual editor.

Improved

  • Entity names now appear based on available bar-row height using line-height-aware container queries.
  • Invalid font_size_max values are ignored safely, keeping the default 14px ceiling active.
  • Documented the new YAML options and CSS variables in the README.

Fixed

  • Restored energy statistics fallback using cumulative state differences when change and sum values are unavailable.