mathewmeconry / MMM-HomeAssistant-Touch

8 stars 2 forks source link

Text not centering and formating? #9

Open scoobyd00 opened 1 month ago

scoobyd00 commented 1 month ago

Love this module and its working great with home assistant. Im trying to get the boxes and text to look nicer. The text isnt currently centered and seems to justify to the right. Ive tried changing height/width/font size in a custom.css but this isnt having any affect Could you point me in the right direction to make it look nicer?. Im only using switches by the way.

mathewmeconry commented 1 month ago

Hey @scoobyd00 Happy that you love the extension. The CSS rules that apply to switches can be found here: https://github.com/mathewmeconry/MMM-HomeAssistant-Touch/blob/80f96976ee960ccf8535e6034b13eb4c815623ec/MMM-HomeAssistant-Touch.css#L7-L25

To overwrite values you probably have to use the !important flag in certain places. But I don't know how MM2 allows to override stuff with custom CSS. Anyhow if you find a better way to center the text and make it look nicer I am happy to merge a pull request