Commit graph

4790 commits

Author SHA1 Message Date
Tusooa Zhu 76727cd39c
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-13 12:02:02 -04:00
Tusooa Zhu 5829cd98af
Clean up debug code for image pinch zoom 2022-03-13 12:02:02 -04:00
Tusooa Zhu 3b4afdf567
Clean up 2022-03-13 12:00:45 -04:00
Tusooa Zhu a485ebc2bb
Check whether we swiped only for mouse pointer 2022-03-13 12:00:45 -04:00
Tusooa Zhu 6980e4ddf1
Scale swipe threshold with viewport width 2022-03-13 12:00:44 -04:00
Tusooa Zhu ddf6c9cef0
Allow pinch-zoom to fill the whole screen 2022-03-13 12:00:44 -04:00
Tusooa Zhu 9f3a983fef
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-13 12:00:44 -04:00
Tusooa Zhu 839627ffc4
Reset position on swipe end even if we cannot navigate 2022-03-13 12:00:44 -04:00
Tusooa Zhu f3269cdc10
Make lint happy 2022-03-13 12:00:44 -04:00
Tusooa Zhu 3502d374e3
Prevent the click event from firing on content below modal 2022-03-13 12:00:44 -04:00
Tusooa Zhu 0190a36070
Add missing swipe click component 2022-03-13 12:00:44 -04:00
Tusooa Zhu 23a6b86ef3
Clean up 2022-03-13 12:00:44 -04:00
Tusooa Zhu 29cd8fbd3b
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-13 12:00:44 -04:00
Tusooa Zhu a36673a6a8
Use pinch-zoom-element for pinch zoom functionality 2022-03-13 12:00:41 -04:00
Tusooa Zhu 544db06294
Add pan threshold 2022-03-13 11:56:35 -04:00
Tusooa Zhu d9030b4fdd
Handle pinch action 2022-03-13 11:56:35 -04:00
Tusooa Zhu a7570f5eb2
Preview swipe action 2022-03-13 11:56:34 -04:00
Tusooa Zhu f96e5882d1
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-13 11:56:30 -04:00
HJ 51b14cc615 Merge branch 'eientei' into 'develop'
Mute bot posts filtering option

See merge request pleroma/pleroma-fe!1440
2022-03-13 14:04:15 +00:00
Alexander Tumin 450145dd6b Do not mute bot posts in notifications 2022-03-09 07:56:43 +03:00
Tusooa Zhu 7a8c975f61
Lint 2022-03-06 14:22:59 -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 77b55a559b fix placeholder attachments opening new tab 2022-02-28 19:42:02 +02:00
Tusooa Zhu c7690aecd0
Add English translation for media modal counter 2022-02-21 10:34:20 -05:00
Tusooa Zhu 1b32bb9c51
Make media modal counter go through i18n 2022-02-21 10:33:47 -05: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
Henry Jameson 7b60adb480 only for user TL 2022-02-20 00:57:31 +02:00
Henry Jameson a31ff20f50 lol, lmao, that was some shit, this is much easier and works all the time 2022-02-20 00:36:21 +02:00
Henry Jameson 2a97bdb39d fix pinned statuses appearing at the bottom of user timeline (and
possibly fetching new ones there)
2022-02-20 00:04:47 +02:00
Henry Jameson 0d073d607c enable link handling in user bios to fix links not having _blank 2022-02-19 22:34:08 +02:00
Henry Jameson 769a9a14fe add emoji to chat titles 2022-02-19 22:30:13 +02:00
Henry Jameson a61f6e1590 use rich content in interaction lists 2022-02-19 22:12:37 +02:00
Henry Jameson ee86f56469 more spacing fixes 2022-02-11 15:10:52 +02:00
Henry Jameson 17d6f1b53b more spacing fixes 2022-02-11 15:06:12 +02:00
Henry Jameson befd4d5fc7 improve unknown attachment handling 2022-02-10 15:42:28 +02:00
Henry Jameson 4c7edfc9a9 more spacing/wrapping fixes 2022-02-09 23:34:26 +02:00
Henry Jameson d361a4d7dc fix overflows 2022-02-04 14:20:56 +02:00
Henry Jameson 571e73a346 better approach to unescaping 2022-02-03 23:13:28 +02:00
Henry Jameson 39ecb33883 fix amps in links 2022-02-03 22:58:12 +02:00
Henry Jameson 0f01931309 make chat messages behave same as posts for animated gifs 2022-02-03 22:52:41 +02:00
Henry Jameson a9830ff491 support width/height img attributes 2022-02-03 22:50:32 +02:00
Henry Jameson 9a6363431d lint 2022-02-03 22:41:38 +02:00
Henry Jameson ea6114f63c better phrasing? 2022-02-03 22:36:13 +02:00
Henry Jameson bfb3a4364b options to disable (You)s and highlighting of yourself 2022-02-03 22:34:57 +02:00
Henry Jameson 6d3229b1a1 fix poast mentions tripping 2022-02-03 22:23:28 +02:00
Henry Jameson 06042569f1 fix alignment issues 2022-02-03 22:10:45 +02:00