fix: Icons and their text can get separated by automatic linebreaking#144
fix: Icons and their text can get separated by automatic linebreaking#144ptsouchlos merged 3 commits intoptsouchlos:mainfrom
Conversation
…, more consistent spearator
|
Thanks for this! I'll give it a more thorough review hopefully in the next week or so but with a cursory look, it looks good to me. Might be good to consider adding test cases for the elements that consist of icon + text so that we can detect breaking changes as part of the testing suite. |
|
I think I have a solution to what I commented above. I'll push some changes. |
91a95d0 to
825bdcc
Compare
contacts vertical alignment
|
Gladly, thank you for the great template! |
|
Hmm for me there's still a bit of overlap, but this is present for me even with the released version of the template, so it's likely on my end. Just curious, but what version of
|
|
|
My guess would be that it's a font issue, which i elegantly circumvent by not having them installed. give me a sec and i'll try to fix that. I'm also using Font Awesome 7 in the working dir, i think your README stated 6? |
Ah I see, yes you can use the font installation scripts to install them locally. And yes the template still requires |
|
|
Hmm must be something on my end then. I'll look into it separately. Thanks! |
|
The one cause that I can still imagine is that the box somehow breaks in your env. could you try removing one for testing purposes? e.g. --- a/lib.typ
+++ b/lib.typ
@@ -337,7 +337,7 @@
let items = ()
if "birth" in author {
- items.push(box[
+ items.push([
#birth-icon
#box[#text(author.birth)]
])I think we can exclude a pdf viewer issue, i tried chromium, firefox, zathura, okular, the gnome document viewer, and they all render it identically |




I wrapped the contacts into additional boxes to ensure icons stay with text, as sometimes there would be inconvenient linebreaks in the CV. I also made the separator usage a bit more consistent, in a way similar to #82 as I just noticed-