Tryggvi

@tryggvigy.bsky.social

Dev @ spotify, desktop client

You wouldn't believe how many edge cases exist in autoscrolling of time synced lyrics UI. How big is the autoscroll zone? Someone scrubbed the progress bar? Oops, the user is in the zone but scrolling! Etc. Really happy with my recent improvements!

Attacks on vibe-coding have begun. LLMs sometimes hallucinate and install non-existent packages. As a result, attackers have started publishing malicious packages under these hallucinated names, which frequently appear in AI-generated suggestions. socket.dev/blog/slopsqu...

Bild

I was reading @kizu.dev awesome CSS experiment with kizu.dev/fit-to-width/ and immediately saw a use-case for our headers at work. But we need to 1. fit to the block axis as well, and 2. ideally support line-clamp too. I took a stab at 1. and got it working. codepen.io/tryggvigy/pe...

Fit-to-Width Text: A New Technique

Registered custom properties are now available in all modern browsers. Using some pre-existing techniques based on them and complex container query length units, I solved a years-long problem of fitti...

kizu.dev

I want to write a few tech posts but don't really know where to start! I feel like i could share a few things that might help others people. But I also don't want to spend too much time or effort on here even though.