vitormhenrique / OctoPrint-Enclosure

OctoPrint Enclosure Plugin
GNU General Public License v3.0
397 stars 202 forks source link

Wrap Temperature / Humidity Sensor Label in Controller Display #411

Open wickedbeernut opened 3 years ago

wickedbeernut commented 3 years ago

Would you please wrap temperature / humidity sensor labels (i.e., rpi_inputs.label = "Enclosure 1", "Enclosure 2", ...) containing a space character in the temperature / humidity controller table in the same way as the "Control" label (i.e., rpi_outputs.label = "Dehumidifier 1", "Dehumidifier 2", ...).

On my PC, the temperature / humidity sensor label is truncated (with "...") after more than nine characters leaving only seven readable characters. The label is truncated regardless of whether it contains space characters.

The "Control" label is not truncated (yet characters beyond ten characters are not displayed), however, words separated by a space character wrap.

I'm simply proposing you treat the two labels the same in order to support more readable characters. Personally, I'd also truncate the column headings from "Temperature" and "Humidity" to "Temp" and "Hum" in order to display labels with more characters.

image