The RichText component is really awesome, and the ability to have addition content in ‘slots’ is great.
We often want to inject text and use rich-text for this. Most often we add a Label
into a slot. However, it always wreaks havoc on our formatting and line-spacing specifically.
I’ve tried a few things:
- Use f-strings bound to content instead of using slots (suggested by @jshaffstall here). This works but doesn’t use slots, which are otherwise very convenient.
- Set the padding and margins to 0 using @stucork 's suggestion here, which doesn’t seem to do anything
- Setting spacing to
none
in conjunction with the above
So, is what I’m trying to do the wrong way to use RichText
components? Or is there something I’m missing?
Clone link: