Y
Hacker News
new
|
ask
|
show
|
jobs
by
wuhhh
129 days ago
Exactly, text content goes in a <span>, icon is an <svg>, flex align items center on the wrapper gets you close, nudge the icon to perfection with transform: translate
1 comments
reaperducer
129 days ago
And then the line wraps.
link
wuhhh
129 days ago
Alright I’ll take the bait, flex shrink none on the svg, white space no wrap on the text
link