Wykres commitów

183 Commity (effbe189e10d37632c012896c957906c9d649937)

Autor SHA1 Wiadomość Data
Lim Chee Aun effbe189e1 Revert "Test upgrade react-hotkeys-hook for the keys fix"
This reverts commit 9285a0ba9a.
2024-04-16 00:09:53 +08:00
Lim Chee Aun 9285a0ba9a Test upgrade react-hotkeys-hook for the keys fix 2024-04-13 00:11:00 +08:00
Lim Chee Aun f6ad22e58f Fix bug: media attachments not updated when edited 2024-04-02 13:12:52 +08:00
Lim Chee Aun aa664e15f6 Convert all the punycodes
Surprising that this is still not built into browsers
2024-04-02 09:03:13 +08:00
Lim Chee Aun bb3621e424 Make loader abrupt if >= 3 replies 2024-02-29 13:19:41 +08:00
Lim Chee Aun 37c784dad2 Make refresh button more prominent 2024-01-16 15:47:10 +08:00
Lim Chee Aun 9b0889fe23 Test show refresh button after a minute 2024-01-14 18:31:53 +08:00
Lim Chee Aun 0ebc0fa64c First step in introducing actions bar 2024-01-14 00:32:08 +08:00
Lim Chee Aun e44ac16396 Fix flash of unscrolled position
Due to statuses being memo-ed, need to speed up the scroll position setup
2024-01-06 19:15:48 +08:00
Lim Chee Aun 54314de976 Experiment unlinked replies (again)
But still show link to the post's "thread"
2024-01-05 19:15:22 +08:00
Lim Chee Aun a8331375ba Double make sure header change doesn't block scrolling 2024-01-04 19:09:30 +08:00
Lim Chee Aun 6919975c6d Remove unneeded .inview 2024-01-04 19:08:51 +08:00
Lim Chee Aun df393ae959 Use InView to replace nearReachStart 2024-01-02 12:25:01 +08:00
Lim Chee Aun 096bc69584 Fix child replies accidentally got GC-ed 2023-12-30 21:03:10 +08:00
Lim Chee Aun 72c5411347 Also show comment icon when not a thread 2023-12-26 17:04:46 +08:00
Lim Chee Aun 69571bf817 Fix "Show all sensitive content" button not working 2023-12-26 10:37:49 +08:00
Lim Chee Aun 66746eb579 Potential fix for weird carousel bug on Firefox 2023-12-05 13:02:52 +08:00
Lim Chee Aun 1422c5da33 Disable Switch post menu if no post instance yet 2023-11-25 21:25:01 +08:00
Lim Chee Aun 6553ae0b6e Use different icon for comment hint 2023-11-23 16:50:14 +08:00
Lim Chee Aun fecebc24a8 Fix missing posts due to GC
Hidden/collapsed comments are not mounted so they got accidentally GC-ed
2023-11-23 09:25:29 +08:00
Lim Chee Aun 85bdaace58 Replace all Menu to Menu2
Need the default unmountOnClose so don't need the :has() hack
2023-11-18 21:11:07 +08:00
Lim Chee Aun 986187141e Make text inside replies button bolder 2023-11-05 09:10:36 +08:00
Lim Chee Aun d9dab6b5ee Ok need to check if navigation is undefined 2023-11-01 23:14:13 +08:00
Lim Chee Aun 3361ffc366 Further make use of Navigation API
history.length is seriously not reliable
2023-11-01 21:56:37 +08:00
Lim Chee Aun 33f807de73 More reliable back button
Uses new Navigation API
2023-11-01 19:11:54 +08:00
Lim Chee Aun 173728536a Extract out the fancy selector string 2023-10-28 16:21:32 +08:00
Lim Chee Aun 087e282677 Show/hide the switch-view button based on viewport width 2023-10-27 23:03:07 +08:00
Lim Chee Aun 372e86415b Test fix scroll position when opening media on the side 2023-10-27 14:16:38 +08:00
Lim Chee Aun 6dd6e0e77c Refactor some components/callbacks 2023-10-27 14:15:29 +08:00
Lim Chee Aun 1c87dd6e41 Check for reload cases too
Prevent status page from going full width when reloading itself

This checks tab's history length, so opening status page on a new tab means
length = 1.

BUT this will fail if someone copies the link and paste to another
**existing** tab with existing pre-populated history.
2023-10-26 11:42:44 +08:00
Lim Chee Aun 81644e67bb Fix 'esc' closes both modal and status page 2023-10-26 02:19:01 +08:00
Lim Chee Aun 3a32cbf974 Test full width for first load of status page 2023-10-25 17:07:00 +08:00
Lim Chee Aun a5532488aa Bunch these avatars too 2023-10-19 17:45:37 +08:00
Lim Chee Aun 809b7cc2d2 Micro perf optimizations maybe 2023-10-16 17:01:16 +08:00
Lim Chee Aun a095a30500 Breaking news: upgrade to masto v6
Expecting bugs!

Also include some fixes for states init.
2023-10-12 12:48:09 +08:00
Lim Chee Aun 5faf911b17 Replace scrollIntoViewIfNeeded with scrollIntoView
Because non-standard and not supported on Firefox
2023-10-04 21:24:48 +08:00
Lim Chee Aun 4436c337dd Cleanup 2023-10-03 15:07:47 +08:00
Lim Chee Aun 4dd706ff96 Pass lang into media description
- Assume status lang applies to media description
- Allow RTL for media description
2023-09-30 23:23:34 +08:00
Lim Chee Aun 98e82a68fd Use useCallback for this 2023-09-10 15:31:51 +08:00
Lim Chee Aun 6b5a98ebb3 Prevent all the re-renders
Srsly this took me hours to debug
2023-09-09 17:00:51 +08:00
Lim Chee Aun aae74aa476 Experiment show avatars instead
Add a bit of tooltips too
2023-08-28 00:21:49 +08:00
Lim Chee Aun d36ea02a02 Undo "Experiment: make replies container not whole-clickable" 2023-08-03 02:10:59 +08:00
Lim Chee Aun 75cfd02134 Need link for ancestors too 2023-08-01 19:24:12 +08:00
Lim Chee Aun 8cd00a053c Experiment: make replies container not whole-clickable
Except for "thread" statuses
2023-08-01 00:15:07 +08:00
Lim Chee Aun 470f7aa353 Experimental back button for status page 2023-07-09 09:12:29 +08:00
Lim Chee Aun c609ba0194 Fix bounce effect bug when switching view modes 2023-06-29 10:08:31 +08:00
Lim Chee Aun 8efc7a226e Fix regression: close media modal, not the status page
Clicking close goes *back* from media=1 to media-only=1
2023-06-29 09:52:41 +08:00
Lim Chee Aun a8c2287038 useLayoutEffect again 2023-06-14 17:37:54 +08:00
Lim Chee Aun 69703df4e1 Should be snapStates 2023-06-11 23:27:09 +08:00
Lim Chee Aun 49c04a4259 Try go back if close media modal 2023-05-26 13:31:02 +08:00