Commit graph

6565 commits

Author SHA1 Message Date
Tusooa Zhu
2da80c2752
Add hide button to media modal 2022-03-03 12:51:13 -05:00
Tusooa Zhu
43c4635b10
Lint 2022-03-03 12:47:30 -05:00
Tusooa Zhu
24ff4559c3
Prevent hiding media viewer if swiped over SwipeClick 2022-03-03 12:47:30 -05:00
Tusooa Zhu
8b17677410
Fix webkit image blurs 2022-03-03 12:47:30 -05:00
Tusooa Zhu
89e4b17ed7
Fix video in media modal not displaying properly 2022-03-03 12:47:30 -05:00
Tusooa Zhu
21bcdacb10
Add changelog for https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1403 2022-03-03 12:47:30 -05:00
Tusooa Zhu
6780f48b8b
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-03-03 12:47:30 -05:00
Tusooa Zhu
c42bd48db2
Clean up debug code for image pinch zoom 2022-03-03 12:47:30 -05:00
Tusooa Zhu
6827dabfb2
Bump @kazvmoe-infra/pinch-zoom-element to 1.2.0 on npm
https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1403
2022-03-03 12:47:30 -05:00
Tusooa Zhu
1141ac22b2
Bump pinch-zoom-element version 2022-03-03 12:47:30 -05:00
Tusooa Zhu
358c7a5909
Clean up 2022-03-03 12:47:30 -05:00
Tusooa Zhu
884f183c3f
Check whether we swiped only for mouse pointer 2022-03-03 12:47:30 -05:00
Tusooa Zhu
e04779ae83
Scale swipe threshold with viewport width 2022-03-03 12:47:29 -05:00
Tusooa Zhu
e5c73fa4c7
Update pinch-zoom-element 2022-03-03 12:47:29 -05:00
Tusooa Zhu
99c96fc414
Allow pinch-zoom to fill the whole screen 2022-03-03 12:47:29 -05:00
Tusooa Zhu
288bb5355b
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-03-03 12:47:29 -05:00
Tusooa Zhu
6f1c8a4296
Reset position on swipe end even if we cannot navigate 2022-03-03 12:47:29 -05:00
Tusooa Zhu
cdd1437a48
Make lint happy 2022-03-03 12:47:29 -05:00
Tusooa Zhu
2b657ef91e
Prevent the click event from firing on content below modal 2022-03-03 12:47:29 -05:00
Tusooa Zhu
6b16b0ee56
Add missing swipe click component 2022-03-03 12:47:29 -05:00
Tusooa Zhu
94aa3f4675
Clean up 2022-03-03 12:47:29 -05:00
Tusooa Zhu
3931f867e8
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-03-03 12:47:28 -05:00
Tusooa Zhu
e6a4464001
Use pinch-zoom-element for pinch zoom functionality 2022-03-03 12:47:28 -05:00
Tusooa Zhu
996cdf6470
Add pan threshold 2022-03-03 12:47:28 -05:00
Tusooa Zhu
2c243a5d62
Handle pinch action 2022-03-03 12:47:28 -05:00
Tusooa Zhu
4970a3c4a6
Preview swipe action 2022-03-03 12:47:28 -05:00
Tusooa Zhu
b95dc3b03e
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-03-03 12:47:28 -05:00
Alexander Tumin
2b7f12613e Add bot indication to user icon on statuses 2022-03-01 01:00:38 +03:00
Alexander Tumin
fe0ed7e8f0 Mute bot posts 2022-02-28 23:14:45 +03:00
Henry Jameson
374df875ee Merge branch 'from/develop/tusooa/tree-threading' into shigusegubu
* from/develop/tusooa/tree-threading: (45 commits)
  Fix showingLongSubject not correctly propagated
  Fix timeline jump when scrolling
  Make replying and mediaPlaying controlled
  Fix virtual scrolling for tree threading
  Clean up debug code for tree threading
  Fix controlled status display toggles
  Add English translations for other replies count
  Add other replies count for reply list link
  Do not display replies inside status as link if there are no other replies
  Add English translation for position of other replies button pref
  Make position of other replies button a pref
  Add English translation for show all conversation button improvement
  Improve "show full conversation" interaction
  Make other replies button stretch along the row
  Optimise thread ancestor borders
  Optimise thread ancestor display style
  Reset thread open state when collapsed
  Clean up
  Highlight ancestor of the current status when diving back to top
  Add English translation for Misskey-style tree view
  ...
2022-02-28 20:17:00 +02:00
Tusooa Zhu
8bcf38d5b3
Fix showingLongSubject not correctly propagated 2022-02-28 13:11:02 -05:00
Tusooa Zhu
f0cf2c79f6
Fix timeline jump when scrolling
Ref: tree-threading
2022-02-28 13:11:02 -05:00
Tusooa Zhu
71f3162f5d
Make replying and mediaPlaying controlled
$refs is not a reliable way to deal with child components under
tree threading as it is not reactive, but the children may change at
any time. The only good way seems to be making these states aggregated on
the conversation component.

Ref: tree-threading
2022-02-28 13:11:02 -05:00
Tusooa Zhu
470c96f49e
Clean up debug code for tree threading 2022-02-28 13:11:02 -05:00
Tusooa Zhu
9eb6d48f69
Fix virtual scrolling for tree threading
Ref: tree-threading
2022-02-28 13:11:02 -05:00
Tusooa Zhu
fe57afd183
Fix controlled status display toggles 2022-02-28 13:11:02 -05:00
Tusooa Zhu
64d20d1b0f
Add English translations for other replies count 2022-02-28 13:11:02 -05:00
Tusooa Zhu
1931595a6e
Add other replies count for reply list link 2022-02-28 13:10:41 -05:00
Tusooa Zhu
7b4043b91b
Do not display replies inside status as link if there are no other replies 2022-02-28 13:10:10 -05:00
HJ
514d7d3f88 Merge branch 'fix-hidden-attachments' into 'develop'
fix placeholder attachments opening new tab

Closes #1139

See merge request pleroma/pleroma-fe!1439
2022-02-28 17:46:58 +00:00
Henry Jameson
77b55a559b fix placeholder attachments opening new tab 2022-02-28 19:42:02 +02:00
Henry Jameson
0c8a018376 local merge conflict resolution 2022-02-28 18:32:57 +02:00
Henry Jameson
e6cf9efe69 Merge branch 'expert-settings-and-serverside' into shigusegubu
* expert-settings-and-serverside:
  lint
  pre-emptively wipe serverside settings on logout
  fix errors in choicesetting
  fix typos in profile page
  hidden away more settings when logged out
  fix settings behaving erratically and not updating properly
  fix stripping rich content not working
  revert changes related to streaming/firehose setting, reword it so it's not confused with websocket streaming
  fix firefox rendering (??????????)
  revert to using local setting for default nsfw since backend is broken
  better phrasing
  new defaults
  expert settings toggle + server-side settings
2022-02-28 18:26:37 +02:00
Henry Jameson
af34c25512 Merge remote-tracking branch 'tusooa/from/develop/tusooa/tree-threading' into shigusegubu
* tusooa/from/develop/tusooa/tree-threading: (48 commits)
  Fix showingLongSubject not correctly propagated
  Fix timeline jump when scrolling
  Make replying and mediaPlaying controlled
  Clean up debug code for tree threading
  Fix virtual scrolling for tree threading
  Fix controlled status display toggles
  Add English translations for other replies count
  Add other replies count for reply list link
  Add English translation for position of other replies button pref
  Make position of other replies button a pref
  Add English translation for show all conversation button improvement
  Improve "show full conversation" interaction
  Make other replies button stretch along the row
  Optimise thread ancestor borders
  Optimise thread ancestor display style
  Reset thread open state when collapsed
  Clean up
  Highlight ancestor of the current status when diving back to top
  Add English translation for Misskey-style tree view
  Implement Misskey-style tree view
  ...
2022-02-28 18:25:12 +02:00
Henry Jameson
77bb0b5530 lint 2022-02-28 18:23:32 +02:00
Henry Jameson
39909c8a85 pre-emptively wipe serverside settings on logout 2022-02-28 18:17:13 +02:00
Henry Jameson
f4b36a9ebf fix errors in choicesetting 2022-02-28 18:15:21 +02:00
Henry Jameson
67319d0e5b fix typos in profile page 2022-02-28 18:15:07 +02:00
Henry Jameson
cf58df17f6 hidden away more settings when logged out 2022-02-28 18:04:13 +02:00
Henry Jameson
8bb97fbfeb fix settings behaving erratically and not updating properly 2022-02-28 18:01:41 +02:00