Commit graph

379 commits

Author SHA1 Message Date
Lim Chee Aun c13cab51a9 Show large card for content with text-weight=1
Also finally replace the hacky CSS with something more legit
2023-02-21 23:59:34 +08:00
Lim Chee Aun c2e9dc0efe Use url, not uri 2023-02-21 14:29:25 +08:00
Lim Chee Aun 8891e0f01c Fix follow/unfollow not working for remote accounts 2023-02-21 14:19:50 +08:00
Lim Chee Aun 6e9661a70c Use the right way 2023-02-20 20:58:53 +08:00
Lim Chee Aun cd70bf87db Animate position-object when link is focused 2023-02-20 17:51:41 +08:00
Lim Chee Aun 79df9546bd Fix the compose status states not inheriting properly 2023-02-20 00:46:21 +08:00
Lim Chee Aun 6c63fb14b4 Hide keyboard shortcut hint until keyboard is triggered 2023-02-19 22:07:46 +08:00
Lim Chee Aun 91ee0da8ef Close menu when trigger shortcut 2023-02-19 22:07:15 +08:00
Lim Chee Aun 8428ca232c Fix shortcuts button missing shadow
And move the menu offset a little
2023-02-19 21:18:12 +08:00
Lim Chee Aun 5c6c9a43f2 Fix regression: threadify stopped working
This is due to status key changed with extra instance string
2023-02-19 21:16:23 +08:00
Lim Chee Aun d5bceb1d81 Handle logged-out cases 2023-02-19 14:49:53 +08:00
Lim Chee Aun 72068d9d46 Another guard 2023-02-19 10:56:28 +08:00
Lim Chee Aun a27bdbc69b Another guard for corrupted shortcuts 2023-02-19 10:42:56 +08:00
Lim Chee Aun 2df67f37a3 Handle cases if the shortcuts are corrupted 2023-02-19 10:27:37 +08:00
Lim Chee Aun 34a015c36a Show pointer cursor 2023-02-19 10:27:10 +08:00
Lim Chee Aun 7e65d8be5d Make smaller statuses stand out in the carousel 2023-02-19 01:10:06 +08:00
Lim Chee Aun 65c1af2eac Make shortcuts button look even cooler 2023-02-19 00:08:37 +08:00
Lim Chee Aun ccdb8d144c Need useTitle 2023-02-18 22:13:32 +08:00
Lim Chee Aun ce8e411cab Prevent hashtags from being clickable inside Composer 2023-02-18 21:44:19 +08:00
Lim Chee Aun ab2328f364 Handle use-case when Following is not in Home, in multi-column mode 2023-02-18 21:37:34 +08:00
Lim Chee Aun 02eb2ff470 Extract columns out & don't use dynamic imports
Vite have difficulties importing them dynamically. Sad face.

Also this makes Home look cleaner.
2023-02-18 21:14:24 +08:00
Lim Chee Aun 522d55ebb8 New experiment: multi-column mode 2023-02-18 20:48:24 +08:00
Lim Chee Aun 45a1fc057e Limit number of shortcuts
9 because there's only 9 keyboard shortcuts. There's '0' but… nah.
2023-02-18 19:39:17 +08:00
Lim Chee Aun 3f73f7d174 Fix weird bug when closing media modal + status page
Somehow useMatch re-renders the media modal and mess up some event handlers on it
Possibly due to react-router-match vs preact issues.

So, remove it totally, replace with CSS :has() solution
2023-02-18 17:38:42 +08:00
Lim Chee Aun 5707da703f Revert "Skeleton avatar should follow size"
This reverts commit f579a8bfb9.
2023-02-18 01:45:44 +08:00
Lim Chee Aun e35f4e2644 Vite complain this is too complex 2023-02-17 20:48:52 +08:00
Lim Chee Aun 3915b3818c One more 40em 2023-02-17 20:48:38 +08:00
Lim Chee Aun 5ef67fab91 Variable-ise the 40em 2023-02-17 20:47:09 +08:00
Lim Chee Aun 5af2a060a6 Update styles 2023-02-17 19:31:28 +08:00
Lim Chee Aun f579a8bfb9 Skeleton avatar should follow size 2023-02-17 19:08:19 +08:00
Lim Chee Aun 9e1f62e47b Use instance check instead of authenticated check 2023-02-17 17:40:39 +08:00
Lim Chee Aun b06cd36b3f Initial work to allow cross-instance linking
- Load current-instance relationship on remote-instance account sheet
- Add button to switch to current-instance status page from remote-instance status page
2023-02-17 17:37:31 +08:00
Lim Chee Aun dc1a045de9 Fix play icon too faded out 2023-02-17 13:07:43 +08:00
Lim Chee Aun d8e6d349a0 Fix undefined 'votes' 2023-02-17 11:00:34 +08:00
Lim Chee Aun 0430f4ae89 Reuse BoostCarousel for pinned posts
Now we can show *anything* into a carousel
2023-02-17 10:55:16 +08:00
Lim Chee Aun a1edc142ae Fix shortcuts button not hiding on large screen 2023-02-17 10:53:04 +08:00
Lim Chee Aun c37df11a25 Show pinned posts 2023-02-17 10:12:59 +08:00
Lim Chee Aun 7aba448f42 Handle multi-paragraph code blocks
This ain't going to be fun if the HTML gets messier in the future
2023-02-16 21:51:22 +08:00
Lim Chee Aun 4dae1d1576 Shorter copies 2023-02-16 19:10:26 +08:00
Lim Chee Aun 74a02ee388 lol forgot to link the datalist 2023-02-16 18:37:57 +08:00
Lim Chee Aun 73e8bed5f0 Basic validation 2023-02-16 18:22:19 +08:00
Lim Chee Aun 0bef245c83 New feature: Shortcuts 2023-02-16 17:52:16 +08:00
Lim Chee Aun 75b6cddb04 Fix conditions not scoped properly 2023-02-15 21:40:58 +08:00
Lim Chee Aun f198571367 Compare exact string before checking variants 2023-02-15 10:46:29 +08:00
Lim Chee Aun 4c17522d42 Fix escape key not working on Safari 2023-02-14 19:38:17 +08:00
Lim Chee Aun c01d3098b8 Add pencil 2023-02-13 09:22:03 +08:00
Lim Chee Aun 255ca8eaa6 Support edit media description for Mastodon v4.1 2023-02-13 01:21:18 +08:00
Lim Chee Aun ac30963ddf New AccountBlock component 2023-02-12 19:29:03 +08:00
Lim Chee Aun 0b6dd07eee Rewrote notifications, again 2023-02-12 17:38:50 +08:00
Lim Chee Aun 30b747527e Okayyy this is dangerous 2023-02-12 14:24:27 +08:00