News for hackers. Stuff that matters.
Re:Stolen Buttons by wuhhh on Saturday July 25, 2026 @11:06AM (#49048174)
I can’t look, so many arrows poorly aligned with text - how can these developers live with themselves!
Re:Stolen Buttons by Aardwolf on Saturday July 25, 2026 @11:12AM (#49048225)
What is one to do? Unicode has dozens of arrows for each direction, but each of them has its height compared to the text rendered differently depending on font or platform
Re:Stolen Buttons by matteason on Saturday July 25, 2026 @11:21AM (#49048329)
They're usually done with SVGs or CSS pseudoelements (a clip-path polygon or borders and rotation) rather than Unicode arrows
Re:Stolen Buttons by wuhhh on Saturday July 25, 2026 @12:06PM (#49048793)
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
Re:Stolen Buttons by reaperducer on Saturday July 25, 2026 @01:18PM (#49049497)
And then the line wraps.
Re:Stolen Buttons by wuhhh on Saturday July 25, 2026 @01:24PM (#49049578)
Alright I’ll take the bait, flex shrink none on the svg, white space no wrap on the text