Commit graph

897 commits

Author SHA1 Message Date
Lim Chee Aun 38bd5c0b5d A bit more aesthetic touches for 'Read more' buttons 2023-09-21 21:56:04 +08:00
Lim Chee Aun 674c99a05d Fix Lemmy post links not working
Because it's self-referential
2023-09-21 13:02:40 +08:00
Lim Chee Aun c955427d8f Handle moved account cases 2023-09-20 17:28:08 +08:00
Lim Chee Aun 56e846bec6 Add more data-read-more UIs 2023-09-20 17:27:54 +08:00
Lim Chee Aun 4acfb2a1cf Use useTruncated for notification items 2023-09-19 21:53:59 +08:00
Lim Chee Aun f9b2ab3b94 Refactor truncated class
Also removed the hack fix, not sure why/how it's even fixed.
Don't even know how to explain the logic.
Will revisit and investigate more if the bug happens.

This `useTruncated` can now be reusable.
2023-09-19 16:27:22 +08:00
Lim Chee Aun 42f9483491 Test propagate contextmenu event
No long press yet
2023-09-19 00:46:14 +08:00
Lim Chee Aun fe80215325 Prevent repeated description for alt+figcaption 2023-09-19 00:45:43 +08:00
Lim Chee Aun f7ffce1b46 Add tooltip to show percentage values of posting stats 2023-09-18 19:23:49 +08:00
Lim Chee Aun 64db69af63 Add small gaps between bars 2023-09-18 19:23:29 +08:00
Lim Chee Aun dafff4b635 Show remaining count if exceed the avatars limit 2023-09-16 23:42:49 +08:00
Lim Chee Aun 887503e40b Auto-list composing
Automatically create lists like "- " or "12. " when press Enter
2023-09-16 22:57:35 +08:00
Lim Chee Aun 941d2efeb1 Convert posting stats box into a link to account page 2023-09-16 14:48:31 +08:00
Lim Chee Aun 908efb17ff Use onClose 2023-09-16 14:47:55 +08:00
Lim Chee Aun 679fba4f66 Make relationship ui state update faster 2023-09-16 09:43:26 +08:00
Lim Chee Aun ad831fae35 Fix disabled follow button 2023-09-16 08:52:24 +08:00
Lim Chee Aun e102a9f925 Combine familiar followers into followers section 2023-09-15 23:59:27 +08:00
Lim Chee Aun 9571271d83 Experimental posting stats for non-following accounts
Also recode+redesign the multiple metadata boxes in account info
2023-09-15 22:15:41 +08:00
Lim Chee Aun b1030cb38a Make figcaption blur too if under content warning 2023-09-15 18:06:55 +08:00
Lim Chee Aun f3b81bc540 Fix focus gone wrong 2023-09-15 01:10:58 +08:00
Lim Chee Aun 020d8e3631 Allow settings for unauthenticated sessions 2023-09-15 00:28:20 +08:00
Lim Chee Aun dac07a35d8 Remove unneeded import 2023-09-14 23:28:01 +08:00
Lim Chee Aun 6db40d7d3e Fix ref not defined 2023-09-14 23:23:22 +08:00
Lim Chee Aun 7a30cc4b12 Clear badge when onmount too 2023-09-14 22:31:16 +08:00
Lim Chee Aun d18db56032 Experiment show inline desc for videos in timelines
Reason: a video takes more time & effort to watch, so a quick desc would be helpful
2023-09-14 20:41:03 +08:00
Lim Chee Aun 27274eeab1 Rework the modal close + focus logic
- 'Esc' a modal will focus on "behind" nested modal
- All modals will have 'esc'
2023-09-14 20:39:23 +08:00
Lim Chee Aun fce5e45bc9 Respect 'reading:expand:spoilers' pref
Note this doesn't follow 'reading:expand:media' pref separately, so media will be spoiled too
2023-09-14 11:23:41 +08:00
Lim Chee Aun fa145d3ed0 Subtle blockquote styling 2023-09-14 00:25:04 +08:00
Lim Chee Aun 5ac255f808 If self, don't need to get familiar followers 2023-09-13 18:43:46 +08:00
Lim Chee Aun 62201b0250 Use _types as key too 2023-09-13 18:43:25 +08:00
Lim Chee Aun f02cd50d7b Fix unknown media not working 2023-09-13 18:10:20 +08:00
Lim Chee Aun 61e1a5042f Fix location invocation bug 2023-09-13 16:38:55 +08:00
Lim Chee Aun 2145f761b5 Fix wrong API call when switch to account's instance 2023-09-12 23:56:01 +08:00
Lim Chee Aun aa3033b4ff Fix bugs with fetching followers/followings 2023-09-12 19:20:22 +08:00
Lim Chee Aun 641d274d7b Handle very-popular cases
- Shorten number
- Limit avatars to 50 since we have the Accounts sheet now
2023-09-12 18:50:46 +08:00
Lim Chee Aun 3fc3641437 Prevent infinite overlapping of Account & Accounts sheets 2023-09-12 18:00:19 +08:00
Lim Chee Aun b57d8adf18 Add Generic Accounts modal
Also refactored whole bunch of stuff
2023-09-12 11:27:54 +08:00
Lim Chee Aun f5184bd608 Prevent propagation from nested links 2023-09-12 11:21:31 +08:00
Lim Chee Aun 671c68b8f8 Experiment use markers for notifications 2023-09-10 19:22:14 +08:00
Lim Chee Aun 2d94f229c3 Fix weird textarea height on first render 2023-09-10 15:29:25 +08:00
Lim Chee Aun 33698c91cc Add one more account resolver fallback 2023-09-10 09:13:00 +08:00
Lim Chee Aun 886d78bde8 Additional ? check 2023-09-09 17:20:31 +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 696a46311d Try willReadFrequently 2023-09-09 14:26:08 +08:00
Lim Chee Aun fea1d77342 Possible small optimization for name-text 2023-09-09 14:25:53 +08:00
Lim Chee Aun 5147efd123 memo all the things
Somehow things got slower on local dev
2023-09-09 14:09:50 +08:00
Lim Chee Aun d4fc54eaf4 Make the floating account block cooler in composer 2023-09-08 21:14:23 +08:00
Lim Chee Aun c82edd2778 Add r, f, shift+b, d 2023-09-08 15:32:55 +08:00
Lim Chee Aun 301b2576c0 Have more fun styling the keys 2023-09-08 15:32:31 +08:00
Lim Chee Aun 3ce8b75e3f Add shortcut help for focusing columns in multi-column mode 2023-09-07 16:17:52 +08:00