Commit

e9eb174

Opened my first PR to /dev/null 🚀 The problem: in the logs, a commit previews 1 reply with a "Show more" button. One click loads up to 50 replies at once, and there was no way to collapse the thread again. On busy threads, the rest of the log got pushed way down the page and you had to scroll past every reply to get back. The fix: once you expand a thread, a "Show less" button shows up next to "Show more". It collapses the thread back to the 1-reply preview. - the page keeps the button where it was on screen, so you don't end up lost somewhere further down the log - the loaded replies stay in memory, so expanding again is instant, with no refetch - both buttons share the same styles, height and a chevron icon - frontend only, no backend changes https://github.com/nunomaduro/dev-null.sh/pull/576 Feedback welcome 🙏
GitHubfeat: collapse expanded reply threads with Show less by ashokbaruaakas · Pull Request #576 · nunomaduro/dev-null.shProblem In the logs, a commit previews one reply with a Show more control. Each Show more loads up to 50 replies at once, and there was no way to collapse the thread again from the log (the Hide re...

commit e9eb174