Commit graph

6411 commits

Author SHA1 Message Date
Henry Jameson
924a626108 Merge remote-tracking branch 'tusooa/from/develop/tusooa/media-touch-actions' into shigusegubu
* tusooa/from/develop/tusooa/media-touch-actions: (28 commits)
  Add English translation for hide tooltip
  Add hide button to media modal
  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
  ...
2022-03-06 23:40:21 +02:00
Henry Jameson
2e69cb773a Merge remote-tracking branch 'origin/develop' into shigusegubu
* origin/develop:
  Lint
  Add renovate.json
  fix placeholder attachments opening new tab
2022-03-06 23:38:18 +02:00
HJ
7e1e8ea429 Merge branch 'from/develop/tusooa/fix-lint-2' into 'develop'
Lint

See merge request pleroma/pleroma-fe!1442
2022-03-06 19:35:05 +00:00
Tusooa Zhu
7a8c975f61
Lint 2022-03-06 14:22:59 -05:00
HJ
1e41c2b99e Merge branch 'renovate/configure' into 'develop'
Configure Renovate

See merge request pleroma/pleroma-fe!1441
2022-03-06 18:25:05 +00:00
Pleroma Renovate Bot
f0f1066bc8 Add renovate.json 2022-03-06 17:50:32 +00:00
Tusooa Zhu
dcb2270487
Add English translation for hide tooltip 2022-03-03 12:52:24 -05:00
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
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
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
Henry Jameson
3a5ad18aca fix stripping rich content not working 2022-02-28 18:00:38 +02:00
Henry Jameson
e3d602fdcc revert changes related to streaming/firehose setting, reword it so it's
not confused with websocket streaming
2022-02-28 17:45:07 +02:00
Henry Jameson
c07c0b2260 fix firefox rendering (??????????) 2022-02-28 17:43:08 +02:00
Tusooa Zhu
075342a4ea
Fix showingLongSubject not correctly propagated 2022-02-27 14:15:45 -05:00