Lim Chee Aun
fe78ac5fa0
Fix userInitiated undefined
2022-12-23 12:30:07 +08:00
Lim Chee Aun
d3e3e47527
Fix logic for cached statuses
2022-12-23 11:28:25 +08:00
Lim Chee Aun
7e84088d67
Handle case when too many sub-comments
...
For now, encourage clicking on status to see more replies instead of expanding the sub-comments
Feels "wasted" since the comments are already loaded but it's just too much scrolling
Also auto-open if the sub-comments are not a lot.
2022-12-23 00:30:55 +08:00
Lim Chee Aun
3b6f0f277e
Rewrite whole scroll logic for Status page
...
Handle 3 cases, all written down in comments.
Crossing my fingers 🤞 🤞 🤞
2022-12-21 18:02:13 +08:00
Lim Chee Aun
04323f05ff
Experimental: caching status + context
...
Cache all statuses from Status page so that it can load faster when
navigating between statuses. Uses sessionStorage
2022-12-21 01:02:48 +08:00
Lim Chee Aun
8babc97877
Fix status jumping bug
...
This part is too complex.
The thread can get very fancy and it's impossible to handle all use-cases without a lot of code.
Solution is just fading all of them out while loading.
2022-12-20 15:32:31 +08:00
Lim Chee Aun
99357dc887
Shorten number for replies count
2022-12-19 17:38:20 +08:00
Lim Chee Aun
9beee6cb37
Revert back to 'X' instead of '<'
...
It can be confused with the browser back button. It doesn't function as back button as well
2022-12-19 16:25:57 +08:00
Lim Chee Aun
681dfaaaff
Auto-open details and hide summary button
...
Only show toggle comments button if there are many statuses
2022-12-19 10:05:27 +08:00
Lim Chee Aun
141f4a94dc
Fix "show more" appearing below the faux padding
2022-12-19 10:04:50 +08:00
Lim Chee Aun
f110ac6812
Fix flash of un-nested comments
2022-12-19 00:19:19 +08:00
Lim Chee Aun
a029c7ccae
Change from 'x' to '<' on Status page
2022-12-18 20:53:32 +08:00
Lim Chee Aun
2f24713d71
✨ Real nested comments
...
- Collapsed/expandable replies
- Pagination for many many comments
2022-12-18 20:46:13 +08:00
Lim Chee Aun
9eb40d165f
Only snap to top when there are ancestors
2022-12-18 13:43:34 +08:00
Lim Chee Aun
6e09d5f836
Fix .insignificant class affecting other elements
...
Remove them because they were used in previous discarded design
2022-12-18 01:14:44 +08:00
Lim Chee Aun
665b908698
Put names into every export
2022-12-16 13:27:04 +08:00
Lim Chee Aun
94dd2bf627
Fix spoiler content accidentally get leaked in document.title
...
- Also add quotes
- Add comment to why use 64 chars (soft) limit
2022-12-15 17:14:33 +08:00
Lim Chee Aun
d884cddf16
Fix bugs on status page
2022-12-10 21:19:38 +08:00
Lim Chee Aun
2b9390a0a1
Initial commit
2022-12-10 17:14:48 +08:00