We have a tool window panel that shows announcemen...
# jewel
k
We have a tool window panel that shows announcements with markdown rendering. After upgrading to Jewel, the
code
sort of text has a lot of extra space around it. We're not sure if this is an issue with the upgrade or if this is something else, and I didn't see anything in the issue tracker yet. Do you have any ideas what we could do to limit the space around these words?
s
Remove emojis :P jokes aside, you can try reducing the line height in the text style, but unfortunately Compose doesn't give us control over the background drawing, so for now that is it...
The emojis thing btw is actually not entirely facetious — emojis do increase the line height
k
Ah okay , thank you for clarifying 🙌 will keep the emojis thing in mind too! Haha
👍 1
s
I'm sorry I don't have a better answer for now
I'm pushing the Compose text team to provide more flexible spans. They're not against it, but I don't know when it'll happen. Not in 1.8 for sure.
🙌 1
The only alternative is grabbing the text layout and doing the BG drawing by hand but that's not always ideal. It works, but it's not ideal. Something like https://github.com/saket/extended-spans
k
Cool, thank you! I'll look into the alternative
👍 1
s
If you do end up implementing that and would like to do a PR to Jewel to mainline the change, we'd appreciate it 🙂
🙏 1