Lim Chee Aun
d15b1fe03e
Fix route() actually not working
2023-01-03 00:48:36 +08:00
Lim Chee Aun
e4de6d1d22
Don't need to focus on status after closing carousel
...
It causes unnecessary scroll
2023-01-03 00:48:16 +08:00
Lim Chee Aun
8d609e14a6
This subtle press-down effect starts to annoy me
2023-01-03 00:30:40 +08:00
Lim Chee Aun
9ea941368d
More fixes
2023-01-03 00:27:47 +08:00
Lim Chee Aun
d235f56cff
Always clear 'new' when load from beginning
2023-01-02 23:19:12 +08:00
Lim Chee Aun
5074716378
Set scroll threshold for up/down
...
Else it'll be too trippy
2023-01-02 23:16:49 +08:00
Lim Chee Aun
7408d7a5d4
No need opacity
2023-01-02 23:16:21 +08:00
Lim Chee Aun
f8821d530d
Maybe these might help a little
2023-01-02 22:02:21 +08:00
Lim Chee Aun
597232067d
Not down enough
2023-01-02 21:43:04 +08:00
Lim Chee Aun
39124ccc70
Add experimental scroll-based effects
...
- Scroll to top = refresh Home
- Scroll up/down = show/hide header and compose button
- Scroll near bottom = load next statuses
- Move Compose button to only at Home instead of 'App' level
2023-01-02 21:36:24 +08:00
Lim Chee Aun
c2bf9eabc5
Remove consoles in prod
2023-01-02 15:09:31 +08:00
Lim Chee Aun
c3aef80ad4
More styles
2023-01-02 15:00:13 +08:00
Lim Chee Aun
44f179a69f
Beautify notifications slightly
2023-01-02 14:42:28 +08:00
Lim Chee Aun
a09f1ea1a3
SWR cache /statuses/:id/context
2023-01-02 14:23:00 +08:00
Lim Chee Aun
fee37f9880
Disable workbox logging because it's too verbose
2023-01-02 14:22:31 +08:00
Lim Chee Aun
89cb909094
Fix NODE_ENV not even working here
2023-01-02 14:22:01 +08:00
Lim Chee Aun
07dff34e20
Show formatted duration for video media
2023-01-02 14:21:38 +08:00
Lim Chee Aun
21bdb51cd6
Compose pop-in/out now can work with non-id medias
...
Commented out for now to see if it really works
The bug is due to valtio proxying the File object
2023-01-02 12:03:06 +08:00
Lim Chee Aun
8099fedf82
Don't store instances list inside JS bundle
2023-01-01 21:02:06 +08:00
Lim Chee Aun
2925afeefc
Refetch list of instance URLs
...
Also bump list to more than 200
2023-01-01 21:00:43 +08:00
Lim Chee Aun
727b944f3b
toLowerCase() all the instance URLs!
2023-01-01 20:59:55 +08:00
Lim Chee Aun
bfaefbe178
Disable autocapitalize on input field
...
And disable a bunch of others too
2023-01-01 20:53:40 +08:00
Lim Chee Aun
0d92f65f7e
Esc for compose field
2023-01-01 19:41:42 +08:00
Lim Chee Aun
d2d8571b3f
Fix updates button got cut off in larger viewport
2023-01-01 19:24:08 +08:00
Lim Chee Aun
6fcf844893
Bump masto
2023-01-01 18:15:26 +08:00
Lim Chee Aun
151f0875ad
Upgrade relative-time-elements
...
They've renamed the package name
2023-01-01 18:14:35 +08:00
Lim Chee Aun
0517690ed3
Spruce up the compose button
2023-01-01 17:19:20 +08:00
Lim Chee Aun
b62cff4d0e
Different gradient for welcome
2023-01-01 17:19:07 +08:00
Lim Chee Aun
4d7aeca10f
Make skeleton unpointerable
2023-01-01 16:09:10 +08:00
Lim Chee Aun
6306ed9602
Move updates button further down
2023-01-01 16:02:15 +08:00
Lim Chee Aun
c116de8456
Don't show card when status is truncated
2023-01-01 16:01:57 +08:00
Lim Chee Aun
811de6ec0a
Remove that one tiny white space at the bottom of the avatar image
2023-01-01 16:01:44 +08:00
Lim Chee Aun
cf1c03f55f
Delay focus compose field a little
2023-01-01 15:32:36 +08:00
Lim Chee Aun
2031e88d87
Better handling of failures
...
Some mastodon instances are getting hit hard
2023-01-01 15:28:07 +08:00
Lim Chee Aun
951c93a070
Add link to media in carousel modal
2023-01-01 12:28:54 +08:00
Lim Chee Aun
842db90f9c
Handle context API call fail error
2023-01-01 12:02:11 +08:00
Lim Chee Aun
4e80e9e0cb
Debounce new statuses
2023-01-01 12:01:54 +08:00
Lim Chee Aun
b153d7526c
Add even more spacing
2023-01-01 12:01:39 +08:00
Lim Chee Aun
5e52874aa5
Use v1 instance api
...
v2 is too new, only added for Mastodon v4
2023-01-01 10:59:20 +08:00
Lim Chee Aun
07163f0c3f
Fix layout bug with routes
...
At this point, it feels like I'm writing my own react-router
2023-01-01 09:18:11 +08:00
Lim Chee Aun
ac91dc7983
Make this manual opt-in
2023-01-01 08:51:56 +08:00
Lim Chee Aun
e22e50705f
Move things around
2023-01-01 01:46:08 +08:00
Lim Chee Aun
d46a1e8b38
Set min height for timeline
2023-01-01 00:50:48 +08:00
Lim Chee Aun
895602e446
Gosh this need to be low threshold
...
It's actually % of the full height of the element. So if the status is super long (100K chars), it'll never be 0.25
2022-12-31 23:58:48 +08:00
Lim Chee Aun
f9e1704727
Disable this hover effect for large status
...
Will still animate in timeline but at least not as distracting
2022-12-31 20:18:56 +08:00
Lim Chee Aun
b12b0c588d
Experimental j,k,o,esc,backspace shortcuts
2022-12-31 09:52:31 +08:00
Lim Chee Aun
36a33e488b
Use focus-visible
2022-12-31 09:51:59 +08:00
Lim Chee Aun
52d5756d44
Remove unused code
2022-12-31 09:51:28 +08:00
Lim Chee Aun
2c970f635a
Make focus ring nicer
2022-12-30 23:09:25 +08:00
Lim Chee Aun
c0234dd26e
Add focus for notification block too
2022-12-30 23:08:55 +08:00