You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove padding when code spans/code link spans are adjacent #62867
There is currently a 0.1em padding applied inside all code spans causing the spacing to look weird. It seems like adjacent code spans (including ones wrapped inside <a>) should have the padding suppressed so they render as if they were one code span.
Won't work, CSS is too limited for that. The only solution I see currently would be to be able to detect that code tags are following each others and merging them as one.
Activity
GuillaumeGomez commentedon Jul 23, 2019
There was a reason for this. I'll check why.
GuillaumeGomez commentedon Jul 23, 2019
The reason why:
It's not very nice looking on "normal" blocks to not have a bit of padding.
GuillaumeGomez commentedon Jul 23, 2019
I've got an idea on how to fix. Let's put it to try!
GuillaumeGomez commentedon Jul 23, 2019
Won't work, CSS is too limited for that. The only solution I see currently would be to be able to detect that code tags are following each others and merging them as one.
dtolnay commentedon Jul 23, 2019
Here is how I currently work around this in Syn (without merging code tags):
GuillaumeGomez commentedon Jul 23, 2019
That's something! 🤣
camelid commentedon Apr 9, 2021
I had an idea on how to implement this in #80733 (comment). I think I might try doing that.
hkBst commentedon Jan 29, 2025
What is the status of this?
GuillaumeGomez commentedon Jan 29, 2025
Forgot about it. Putting it back into my todo list.
GuillaumeGomez commentedon Jan 30, 2025
Opened #136308.
notriddle commentedon Apr 9, 2025
Resolved by rust-lang/rust-clippy#14121