Follow

the timeline is getting so comfy to scroll through, think I finally figured out the way I want to do virtualized scrolling, preserving resources by not rendering the entire stored timeline, but still having the option to go far into backlog, which is then cleaned up again if you scroll back up

try it out on fedifox.cthu.lu

read-only interface can get kinda frustrating tho lol, seeing good toots I want to interact with but can't :")

@42GB oh yep, reused from fedifox-shield and GoToSocial :)

@f0x haven’t seen it before. Looks helpful.

@f0x Will fedifox ship with this feature that redacts all posts not written by myself?

@f0x Well, that, but it's also a really cool way to display photos/videos without exposing other people against their consent

@rune right yeah, though I think it'd make more sense to have a good profile view with media browser, and maybe easy pop-out for specific threads

@f0x oh, that's the exact issue I got so stuck on while writing my client that I haven't done any work on it in almost a year now

@dysphoricunicorn I got quite stuck on this before too :") None of the virtualized list component libraries seemed to work well with dynamically sized items, so after lots of hacking I wrote something that seems to work quite well now; based on sections of the timeline that are far outside view simplifying to a single fixed height placeholder element (calculated from the rendered toots at the point of hiding), or if it's at the bottom of the timeline, getting removed entirely

@dysphoricunicorn using a bunch of IntersectionObservers and a dynamically changing up to which point the timeline should be truncated, which is advanced by the go deeper button, and reduced when a section should dissappear

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.