Commit graph

320 commits

Author SHA1 Message Date
Lim Chee Aun d71b1a7e36 Test add "more" icon near timestamp 2024-01-10 01:47:50 +08:00
Lim Chee Aun 147a12cbcb Handle cards with iframe embeds 2024-01-06 16:46:45 +08:00
Lim Chee Aun 16e2ac9bce Test better equal checks 2024-01-06 12:31:25 +08:00
Lim Chee Aun bd38122f1b Extract unfurling out of status component 2023-12-30 18:13:56 +08:00
Lim Chee Aun 6500be2782 Disable hotkeys in quote posts 2023-12-29 18:16:08 +08:00
Lim Chee Aun 71d2db31e0 Fix undefined sKey 2023-12-29 08:25:41 +08:00
Lim Chee Aun e13a2feec8 Prioritise local instance unfurl over remote 2023-12-28 11:58:50 +08:00
Lim Chee Aun b89463d412 Various adjustments for spoilers and media
- No more blur effects. Performance is more important
- Add background color for all media
2023-12-26 17:06:52 +08:00
Lim Chee Aun 6dd54633e0 Finally revisiting this CW thing
Respect reading:expand:spoilers and reading:expand:media but differently than Mastodon's logic
2023-12-24 21:07:46 +08:00
Lim Chee Aun 088d795595 This got repositioned 2023-12-24 21:06:26 +08:00
Lim Chee Aun 92d6fe7ebe Let's add speech 2023-12-21 18:17:14 +08:00
Lim Chee Aun a2189bf44b Make card aware of self-reference
Prevent unfurl if self-referential
2023-12-21 00:37:40 +08:00
Lim Chee Aun bee32cc781 Add 'x' for expanding content warning 2023-12-20 16:42:36 +08:00
Lim Chee Aun 8ce720f305 Add all the relationships 2023-12-20 13:55:56 +08:00
Lim Chee Aun df16cabec5 Need tooltip of the timestamp 2023-12-15 23:30:09 +08:00
Lim Chee Aun aa8cbe046c New experiment: followed tag indicator 2023-12-15 01:58:44 +08:00
Lim Chee Aun cbb7378601 Guard against invalid URLs 2023-12-03 20:40:00 +08:00
Lim Chee Aun f98306ed18 No need render div if no content 2023-12-03 20:26:42 +08:00
Lim Chee Aun 89fb1bbc07 Experiment show replies count for questions 2023-11-30 23:47:58 +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 19ed85f298 Make comment hint opt-in 2023-11-14 22:45:13 +08:00
Lim Chee Aun d6afb473ee Experiment show replies hint 2023-11-14 16:52:47 +08:00
Lim Chee Aun 678fc100c8 Allow shifts to open composer in new window 2023-11-05 17:41:29 +08:00
Lim Chee Aun 305710fa8c Fix collapsed peek status with wrong url 2023-11-05 17:40:58 +08:00
Lim Chee Aun 83bdc82049 Add more unfurling
- Fix regex
- Handle trunks.social and Phanpy links too
2023-11-05 16:13:00 +08:00
Lim Chee Aun e5d5025299 Quick fix disappearing posts bug 2023-11-05 08:21:43 +08:00
Lim Chee Aun 9f31cc8e07 Some sort of "garbage collection" 2023-11-04 19:18:12 +08:00
Lim Chee Aun 660cbebbc4 Move iOS check outside 2023-11-04 19:05:14 +08:00
Lim Chee Aun 5f50df1721 Replace provider/author fallback with published date 2023-11-04 15:36:13 +08:00
Lim Chee Aun 7ad6151637 Port domain format from Trending 2023-11-04 15:35:28 +08:00
Lim Chee Aun 0bc1b598c3 Breaking: rewrote filters implementation 2023-11-03 21:45:31 +08:00
Lim Chee Aun 0c2d79c159 Make edited timestamp tab-able 2023-11-02 10:50:21 +08:00
Lim Chee Aun 93e19f549d No need scroll back 2023-11-02 10:50:01 +08:00
Lim Chee Aun 38ee094405 Make edited modal lighter 2023-11-02 10:49:52 +08:00
Lim Chee Aun bf7acb6eab Add more conditions for binding longpress
Should be same condition as contextmenu
2023-11-02 08:00:00 +08:00
Lim Chee Aun 616b9fcf02 Skip if meta/ctrl/shift/alt/middle-click 2023-11-01 21:56:06 +08:00
Lim Chee Aun b9afe4fb66 s/Favourite/Like
Poll: https://mastodon.social/@cheeaun/111272668719225402
2023-10-25 13:55:12 +08:00
Lim Chee Aun e7ef20f265 Reuse context menu component for Status
This might be buggy
2023-10-22 19:27:15 +08:00
Lim Chee Aun 1dc0069cdc More descriptive toasts copy 2023-10-19 20:02:31 +08:00
Lim Chee Aun 9786752a4f Group similar captions
Some folks really just copy/paste same desc for multiple media's
2023-10-15 18:28:04 +08:00
Lim Chee Aun e1ae89b00e Contextually highlight related caption when hovering over image
For multiple-media figures
2023-10-15 09:00:35 +08:00
Lim Chee Aun df9eeeb0b3 Don't have to memoize unfurl
It already has caching
2023-10-15 01:42:24 +08:00
Lim Chee Aun f56a44ac97 Complete transition from mem to moize 2023-10-14 20:33:40 +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 12d0e6aed8 Fix media caption and index not synced 2023-10-07 09:41:38 +08:00
Lim Chee Aun 769a5cb099 Change caption display logic for multiple media
- Show all of them or none of them
- If there's at least one caption < 140 chars, show all of them
- Fix potential bug when there are > 4 media
2023-10-06 23:57:12 +08:00
Lim Chee Aun aad855cafc Try to use the additional new props for card
Only use imageDescription for now
2023-10-05 08:54:59 +08:00
Lim Chee Aun 643b6bce07 Try to use the additional new props for card
Only use imageDescription for now
2023-10-04 22:40:34 +08:00
Lim Chee Aun a1a78370cc Remove 'Media {i}:'
It'll look weird when description is not English
2023-10-02 19:57:19 +08:00
Lim Chee Aun 7e993704cc More conditions for show/hide captions
- Remove unused code
- Refactor and memoize the long/short calculation too
2023-10-02 18:58:42 +08:00