-
8 votes
-
Experimenting with a way of avoiding deeply nested comment threads
One of the difficulties with a nested/tree commenting system is finding a way to deal with threads that get very "deep", when people continue replying back and forth under the same threads. The...
One of the difficulties with a nested/tree commenting system is finding a way to deal with threads that get very "deep", when people continue replying back and forth under the same threads. The deep threads end up getting indented very far, and this looks bad, can be hard to follow, and wastes a ton of space (especially on smaller screens like phones).
I'm not a huge fan of any of the ways that I've seen other sites try to handle this, so I've been trying to figure out if there might be any other possibilities that would work well. I've noticed that in most of the cases where a thread gets very deep, a lot of the depth comes from back-and-forth replies, where there's only one comment on each "level". So I'm testing a method that will flatten those sections out and just put a note on each comment that it's a direct reply to the comment above it.
Specifically, the current method (which is now live), works like this: if a comment is at least 4 levels deep and only has a single reply, don't indent the reply any further. Instead, keep the reply at the same indentation and add a note at the top of it indicating that it's a reply to the above comment.
I managed to implement this entirely through CSS, by writing what's probably the
worstbest chunk of CSS (really, SASS) of my life, which I want to show off here. If you don't know CSS and can't read this, trust me, you're better off:.comment:not([data-comment-depth="0"]):not([data-comment-depth="1"]):not([data-comment-depth="2"]):not([data-comment-depth="3"]) { &[data-comment-replies="1"] { & > .comment-tree-replies { margin-left: -1px; // compensate for border & > .comment-tree-item > .comment > .comment-itself { & > .comment-text::before, & > header > .is-comment-deleted::before, & > header > .is-comment-removed::before { content: "(Reply to above comment)"; font-size: 0.6rem; font-style: italic; margin-right: 0.2rem; } } } } }One of the really interesting things about implementing this entirely in CSS is that we can easily change what level it happens at based on screen size. So I have it set to always start at depth >= 4 right now to help with testing and deciding whether it works well or not, but if we decide to keep it I could easily change the threshold to higher on desktop and keep it lower on smaller screens.
As an example of how it works, the previous ~tildes.official thread works really well. @Amarok and @cfabbro had a long discussion about music metadata that went very deep. The thread ends up 16 levels deep, but this new change makes it so that it only indents by 5 levels instead of 16. Here's a comparison between how the end of the thread looks on my phone: before this change vs. after this change (yes, something's not quite right with the indentation lines yet).
Let me know what you think. I'm mostly concerned that this might make it a little harder to follow long threads since the information from the indentation is lost, but I think we need to test it out in real threads for a while to see if that actually ends up being significant or just takes a bit of getting used to.
76 votes -
Gay-friendly towns in red states draw LGBTQ tourists: 'We're here to be normal for a weekend'
20 votes -
The happiest cats on Earth
7 votes -
Dominic Fike - Don't Forget About Me, Demos
5 votes -
Buying from Amazon: Three steps to find what you need and avoid fake reviews | No Sweat Tech
7 votes -
Boeing didn’t tell airlines a 737 MAX safety feature wasn’t functional
7 votes -
Little Big - Skibidi
5 votes -
Of all the meaningless terms in the food labeling world—and there are a lot—”natural” might be one of the worst
10 votes -
SpaceX cuts broadband-satellite altitude in half to prevent space debris
7 votes -
The Bob Emergency: a study of athletes named Bob, Part I | Chart Party
6 votes -
The empty promise of suicide prevention: Many of the problems that lead people to kill themselves cannot be fixed with a little extra serotonin
19 votes -
"Looping" has created an underground market for old Medtronic insulin pumps with a security flaw
10 votes -
United Methodist court upholds Traditional Plan’s ban on LGBTQ clergy, same sex marriage
11 votes -
The hundred-tonne robots that help keep New Zealand running
3 votes -
Los Campesinos! - Miserabilia
4 votes -
Eudora Welty on Charlotte's Web, Dorothy Parker on Winnie the Pooh, and more classic reviews of beloved children's books.
5 votes -
Eiffel 65 - Back In Time (2001)
6 votes -
The telegraph was America's first singularity
7 votes -
MLS Week 9: All Matches Discussion
DC United @ Columbus Montreal @ New England LA Galaxy @ MNUFC San Jose @ Seattle Orlando @ NYCFC Portland Timbers @ Toronto San Jose @ FC Dallas Philadelphia @ Vancouver Colorado @ Atlanta FC...
DC United @ Columbus
Montreal @ New England
LA Galaxy @ MNUFC
San Jose @ Seattle
Orlando @ NYCFC
Portland Timbers @ Toronto
San Jose @ FC Dallas
Philadelphia @ Vancouver
Colorado @ Atlanta
FC Cincinnati @ NYRB
Columbus @ Houston
New England @ Sporting Kansas City
Chicago @ Montreal
DC United @ MNUFC
LAFC @ Seattle
Real Salt Lake @ LA Galaxy6 votes -
Is it OK to scrape Tildes?
I wanted to keep the title---and the question, for that matter---generic, but my use case is that I want to make a backup of my posts on Tildes, and I'd fancy automating that with a script that...
I wanted to keep the title---and the question, for that matter---generic, but my use case is that I want to make a backup of my posts on Tildes, and I'd fancy automating that with a script that curls up my user page and downloads fresh stuff from there periodically. So for my personal case, the question is that is this allowed / welcome practice?
The generic question is that is it welcome to scrape Tildes' public pages, in general?
19 votes -
When setting an environment variable gives you a 40x speedup
15 votes -
Center For Humane Technology: A New Agenda for Tech (Tristan Harris)
5 votes -
Tumblr helped me plan my eating disorder. Then it helped me heal.
10 votes -
Why have America's Black farmers disappeared?
11 votes -
When a child's mental health diagnosis comes too late to help
15 votes -
Indonesia President Joko Widodo plans to move capital city
4 votes -
Australian poet Les Murray dies at 80
Death notice at ABC news: Australian poet Les Murray dies at 80 Article about Les Murray in 2002: In the Land of Les Murray
3 votes -
Thousands take to Hong Kong streets to protest new extradition laws
12 votes -
What creative projects are you working on?
it has not been about a month since the last thread, but it would probably be more convenient to just do these threads on the first day of each month instead of in the middle of the month and...
it has not been about a month since the last thread, but it would probably be more convenient to just do these threads on the first day of each month instead of in the middle of the month and waiting for another twenty or so days to get on that track is ridiculous, so i'm going to just start this one now and then do the next one on may 1st. anyways, we're back again! here you can share/provide updates on some of the projects that you're working on. they can be of any kind--digital, physical, work related, passion project, whatever. pretty straightforward, i think.
20 votes -
Synthetic speech generated from brain recordings
5 votes -
Rise in white prisoners shows prison racism goes beyond disparities
8 votes -
Climate change fiction is rethinking the ecoterrorist
9 votes -
Every Noise at Once - An interactive visualization of Spotify music genres
9 votes -
Variations on a Name: The -Punks of our Times
4 votes -
Stonewall changed the course of queer history. These artworks captured the aftermath
8 votes -
As more and more of our words are tapped out on keyboards, writing by hand has become an endangered species
8 votes -
John Ozila – Funky Boogie (Pilooski remix)
3 votes -
"Avengers: Endgame" has shattered all box office records
10 votes -
Not Just Child's Play: World Tiddlywinks Champions Reclaim Their Glory
3 votes -
A Bouquet Of Poets For National Poetry Month
4 votes -
Nol - Idu, Kuriu (I go, I smoke) (1992)
4 votes -
Ignore the Poway Synagogue shooter’s manifesto: Pay attention to 8chan’s /pol/ board
28 votes -
Rare and strange ICD-10 codes
7 votes -
Where to research IT salaries
5 votes -
The birth of cheap communication (and junk mail)
7 votes -
Study finds Reddit’s ban of its most toxic subreddits worked
17 votes -
SolarSoundSystem/Radio 3S Solar Mimuna - Moroccan special
4 votes -
Academic papers should be free
24 votes -
The myriad drumbeats of Afrofuturism: Afro-Brazilian speculative fiction
9 votes