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
seb
10/23/2024, 6:56 PM
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...
seb
10/23/2024, 6:56 PM
The emojis thing btw is actually not entirely facetious — emojis do increase the line height
k
Kate Liu
10/23/2024, 7:10 PM
Ah okay , thank you for clarifying 🙌 will keep the emojis thing in mind too! Haha
👍 1
s
seb
10/23/2024, 8:13 PM
I'm sorry I don't have a better answer for now
seb
10/23/2024, 8:14 PM
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
seb
10/23/2024, 8:15 PM
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
Kate Liu
10/23/2024, 8:43 PM
Cool, thank you! I'll look into the alternative
👍 1
s
seb
10/23/2024, 8:53 PM
If you do end up implementing that and would like to do a PR to Jewel to mainline the change, we'd appreciate it 🙂