Hacker News new | ask | show | jobs
by gtmtg 2374 days ago
For anyone who's wondering how it works: key line of code seems to be here (https://github.com/dwarvesf/hidden/blob/develop/hidden/ViewC...), where they make the "separator" element really wide to push the icons to be hidden offscreen.
2 comments

Apparently that trick is used in other, similar tools: https://github.com/Mortennn/Dozer/blob/master/Dozer/StatusIc...
So I imagine then that this relies on operating system behavior that says "show as many icons as we can fit, if we go over our limit hide the rest and right-justify the ones that did fit" - so therefore by controlling the width they can change that breakpoint?