Thanks you! Looks good Do you know how to change the font size? and maybe even the font ?
its html, you can change however you want it
This is great, thank you! Possible to reduce the top and bottom padding?
@iantrich Is there a way to change the font size without changing the theme? Maybe using card-mod? I want different font sizes for different cards. Thanks!
You can try to use modified code, I provided in this post (and some modifications few posts later). It yer require to put some defaults for the component into the theme file, but it is independent from other theme elements.
I want mine basically exactly like yours, but my separator lines and text is white. I got the text changed, but what do I need to change to edit the lines themselves?
EDIT: nevermind, figured it out, its the border-bottom: 1px solid #fff;
i am very new to home assistant and recently installed the custom text divider row and have been trying to edit the font size to no success i am unsure how i am doing it incorrectly i have gotten this down? any help is appreciated!
You need to use card-mod to change the font, as this component does not directly controll this parameter. Al;ternatively you can replace it with customized, forked version of this component, that allows more control via themes file.
Should be done as:
- type: entities
entities:
- type: custom:text-divider-row
text: modded
card_mod:
style: |
:host {
--text-divider-font-size: 30px;
}
Why not trying with a negative value for fontsize?))
i am unsure what that means (im new to all this)
Sorry, I just wanted to express (and I did it may be not in an appropriate way) that the CSS propertyβs value should be reasonable.
800px is not a reasonable value - could you test with values between, letβs say, 5pxβ¦20px?
Somewhere in the middle there is a default value, so you should test with different values to see a clear difference.
this is not what I suggested here.
What I know is, itβs definitely working if you put text-divider-font-size: 20px
in your theme yaml. But then all text divider will have this text size.
Do you have card-mod installed?
ah no i do not
i have installed it and have attempted to put the config where it needs to be (i believe this is correct?) but still no use in getting the font size to change