Commit graph

3,552 commits

Author SHA1 Message Date
Tusooa Zhu
cad008e351
Highlight ancestor of the current status when diving back to top 2022-02-27 14:09:47 -05:00
Tusooa Zhu
afb7c749b1
Implement Misskey-style tree view
Now the tree will be always rooted at the highlighted status, and
all its ancestors shown linearly on the top.

Enhancement: If an ancestor has more
than one reply (i.e. it has a child that is not on current status's
ancestor chain), we are given a link to root the thread at that status.
2022-02-27 14:09:30 -05:00
Tusooa Zhu
644aced2dd
Remove horizontal border and thicken vertical border in a thread tree 2022-02-27 14:09:29 -05:00
Tusooa Zhu
9d26dc9a2c
Make dive/undive button clickable along the whole row 2022-02-27 14:09:29 -05:00
Tusooa Zhu
6c6f824591
Optimize thread border radius 2022-02-27 14:09:29 -05:00
Tusooa Zhu
5b77177931
Optimize thread display 2022-02-27 14:09:29 -05:00
Tusooa Zhu
690e979ff2
Fix the bug where toggleShowingTall does not work 2022-02-27 14:09:28 -05:00
Tusooa Zhu
c5301b4831
Fix status undefined in parentOf 2022-02-27 14:08:47 -05:00
Tusooa Zhu
ad5bbec28c
Add settings for max depth in thread 2022-02-27 14:08:33 -05:00
Tusooa Zhu
268d3533f9
Use mergedConfig properly 2022-02-27 14:08:33 -05:00
Tusooa Zhu
3d0ebaf54b
Fallback to simpleTree style 2022-02-27 14:08:14 -05:00
Tusooa Zhu
6c20c5dd52
Undive when collapsed 2022-02-27 14:08:04 -05:00
Tusooa Zhu
3535ca49b5
Clean up 2022-02-27 14:07:47 -05:00
Tusooa Zhu
f9d67d8c8a
Lint 2022-02-27 14:07:39 -05:00
Tusooa Zhu
ae883c759a
Add simple tree style navigation 2022-02-27 14:07:14 -05:00
Tusooa Zhu
612c12ef53
Add dive functionality 2022-02-27 14:06:58 -05:00
Tusooa Zhu
13172dea89
Support diving into one status in a conversation 2022-02-27 14:06:30 -05:00
Tusooa Zhu
d45d0e05a5
Make status display controlled 2022-02-27 14:06:15 -05:00
Tusooa Zhu
242e2891c5
Make show full thread message account for numbers 2022-02-27 14:06:00 -05:00
Tusooa Zhu
d10acfd993
Implement thread folding/expanding 2022-02-27 14:05:59 -05:00
Tusooa Zhu
576327d215
Add tree-style thread display 2022-02-27 14:05:25 -05:00
Henry Jameson
f626da838a revert to using local setting for default nsfw since backend is broken 2022-02-24 15:00:08 +02:00
Henry Jameson
9c1814d122 expert settings toggle + server-side settings 2022-02-22 23:31:40 +02:00
Tusooa Zhu
1b32bb9c51
Make media modal counter go through i18n 2022-02-21 10:33:47 -05:00
Henry Jameson
5db8112cd5 Merge remote-tracking branch 'tusooa/from/develop/tusooa/media-touch-actions' into shigusegubu
* tusooa/from/develop/tusooa/media-touch-actions: (26 commits)
  Lint
  Prevent hiding media viewer if swiped over SwipeClick
  Fix webkit image blurs
  Fix video in media modal not displaying properly
  Add changelog for https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1403
  Remove image box-shadow in media modal
  Clean up debug code for image pinch zoom
  Bump @kazvmoe-infra/pinch-zoom-element to 1.2.0 on npm
  Bump pinch-zoom-element version
  Clean up
  Check whether we swiped only for mouse pointer
  Scale swipe threshold with viewport width
  Update pinch-zoom-element
  Allow pinch-zoom to fill the whole screen
  Use native click for hiding overlay
  Reset position on swipe end even if we cannot navigate
  Make lint happy
  Prevent the click event from firing on content below modal
  Add missing swipe click component
  Clean up
  ...
2022-02-21 16:59:08 +02:00
Tusooa Zhu
4eab7a135b
Lint 2022-02-20 22:58:02 -05:00
Tusooa Zhu
d8bf931e06
Prevent hiding media viewer if swiped over SwipeClick 2022-02-20 22:56:42 -05:00
Tusooa Zhu
b8e4b8478e
Fix webkit image blurs 2022-02-20 22:56:31 -05:00
Tusooa Zhu
1e9cbb2da1
Fix video in media modal not displaying properly 2022-02-20 22:56:16 -05:00
Tusooa Zhu
3a618465be
Remove image box-shadow in media modal
The box-shadow causes an image to be very blurry on Webkit browsers
(experienced: Konqueror, Safari; heard of: Chrome) when scaled up
if the initial size of the image is much smaller than the actual size
(e.g. when viewing a very long picture).

The shadow is not really obvious anyway.
2022-02-20 22:55:12 -05:00
Tusooa Zhu
c6de55b558
Clean up debug code for image pinch zoom 2022-02-20 22:54:12 -05:00
Tusooa Zhu
872619c9cd
Scale swipe threshold with viewport width 2022-02-20 22:53:26 -05:00
Tusooa Zhu
500867c010
Allow pinch-zoom to fill the whole screen 2022-02-20 22:53:26 -05:00
Tusooa Zhu
98e1be19ec
Use native click for hiding overlay
The pointerup strategy is unsuccessful, as some other overlays
(Firefox's Inspect Element) will pass down pointerup events.
2022-02-20 22:53:25 -05:00
Tusooa Zhu
fe691f8cb4
Reset position on swipe end even if we cannot navigate 2022-02-20 22:53:25 -05:00
Tusooa Zhu
104677860b
Make lint happy 2022-02-20 22:53:25 -05:00
Tusooa Zhu
bc67ba06bb
Prevent the click event from firing on content below modal 2022-02-20 22:53:25 -05:00
Tusooa Zhu
1f44cc9089
Add missing swipe click component 2022-02-20 22:53:25 -05:00
Tusooa Zhu
98baae9709
Clean up 2022-02-20 22:53:25 -05:00
Tusooa Zhu
43b285893a
Add swipe-click handler to media modal
Now swiping will correctly change the current media, and with a good
preview. Clicking without swiping closes the overlay.
2022-02-20 22:53:24 -05:00
Tusooa Zhu
42ef082ff6
Use pinch-zoom-element for pinch zoom functionality 2022-02-20 22:53:24 -05:00
Tusooa Zhu
3648a82f3f
Add pan threshold 2022-02-20 22:53:24 -05:00
Tusooa Zhu
a4253c0543
Handle pinch action 2022-02-20 22:53:24 -05:00
Tusooa Zhu
470cec3a6b
Preview swipe action 2022-02-20 22:53:24 -05:00
Tusooa Zhu
dc186d8b53
Make media modal be aware of multi-touch actions
Originally the media viewer would think every touch is a swipe (one-finger
touch event), so we would encounter the case where a two-finger scale event
would incorrectly change the current media. This is now fixed.
2022-02-20 22:51:54 -05:00
Henry Jameson
5620117f56 Merge remote-tracking branch 'origin/develop' into shigusegubu
* origin/develop:
  fix #1133
2022-02-20 17:12:39 +02:00
HJ
58d0f9678b Merge branch 'fix-mentions-new-bugs' into 'develop'
Fix newfound bugs with rich mentions + user suggestions

See merge request pleroma/pleroma-fe!1430
2022-02-20 15:11:52 +00:00
HJ
ddee8bb686 Merge branch 'proper-attachments' into 'develop'
Attachment improvements

See merge request pleroma/pleroma-fe!1399
2022-02-20 15:11:33 +00:00
HJ
56616787ec Merge branch 'fix-pinned-statuses' into 'develop'
Fix pinned statuses appearing at the bottom of user timeline

Closes #1112

See merge request pleroma/pleroma-fe!1433
2022-02-20 15:11:08 +00:00
Henry Jameson
373c30be69 fix #1133 2022-02-20 16:06:26 +02:00