Commit graph

5,826 commits

Author SHA1 Message Date
Tusooa Zhu
cd536157ee Fix react & extra buttons not styled on tab-focus 2022-08-22 20:28:52 +00:00
Tusooa Zhu
5676b5cfc9 Fix popover not popping up
Sometimes the "focus-marker" gets clicked. In this situation,
it will trigger an open, and then a close, because the original
focus-marker was removed from the dom, so $el.contains() no
longer thinks the marker is part of the trigger! We replaced the
v-if with v-show to resolve this problem.
2022-08-22 20:28:52 +00:00
Tusooa Zhu
11672bc490 Fix styling on Safari 2022-08-22 20:28:52 +00:00
Tusooa Zhu
97951fccfd Use :focus-visible instead of :focus for focus markers
In this way, after the user clicked with a pointer and moved that
pointer away, the focus marker will no longer show a focused style.

As Safari remains the only major browser engine that does not support
:focus-visible, a fallback to :focus is used if there is no browser
support for :focus-visible.

https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible
2022-08-22 20:28:52 +00:00
Tusooa Zhu
378ed3682e Optimize Reply badge position 2022-08-22 20:28:52 +00:00
Tusooa Zhu
b2e4827741 Add badges to status interacting buttons
Now, the following badges will be added:
0: (+) sign to reply, favourite, repeat, react and extra buttons
1: (-) sign to unfavourite and unrepeat
2: (x) sign to close reply form, close react popover, and close extra buttons popover
3: Check mark to favourited and repeated statuses

https://git.pleroma.social/pleroma/pleroma-fe/-/issues/1092
2022-08-22 20:28:52 +00:00
Henry Jameson
14be662918 Merge branch 'from/develop/tusooa/grouped-emoji-picker' into shigusegubu-vue3
* from/develop/tusooa/grouped-emoji-picker: (34 commits)
  Fix emoji picker lint
  Fix emoji picker lint
  Tweak efficiency when changing filter keywords in emoji picker
  Use trimmed keyword for filtering emojis
  Limit the width of unsupported multichar emojis
  Make emoji picker work with vue3
  Make StillImage react to src changes
  Lint
  Add English translation for unicode emoji group names
  Add icons for unicode emoji groups
  Make emoji picker use grouped unicode emojis
  Generate grouped unicode emojis from unicode-emoji-json
  Scroll active tab header into view in emoji picker
  Clean up emoji picker css
  Use StillImage to render emojis in emoji picker
  Fix error on emoji picker first load
  Group emojis only by pack and remove pack: prefix
  Lint
  Lazy-load emoji picker in post form
  Fix sticker picker heading tab
  ...
2022-08-18 11:50:40 +03:00
Tusooa Zhu
a3b01284f7
Fix emoji picker lint 2022-08-17 19:02:00 -04:00
Tusooa Zhu
b376a5b864
Fix emoji picker lint 2022-08-17 19:02:00 -04:00
Tusooa Zhu
7f84e17770
Tweak efficiency when changing filter keywords in emoji picker 2022-08-17 19:01:59 -04:00
Tusooa Zhu
724913cabd
Use trimmed keyword for filtering emojis 2022-08-17 19:01:59 -04:00
Tusooa Zhu
a521e9b33e
Limit the width of unsupported multichar emojis 2022-08-17 19:01:59 -04:00
Tusooa Zhu
a3821d0eca
Make emoji picker work with vue3 2022-08-17 19:01:59 -04:00
Tusooa Zhu
1a1d6b464e
Make StillImage react to src changes 2022-08-17 19:01:59 -04:00
Tusooa Zhu
baf6082a25
Lint 2022-08-17 19:01:59 -04:00
Tusooa Zhu
9d73d7f968
Add English translation for unicode emoji group names 2022-08-17 19:01:59 -04:00
Tusooa Zhu
6c7b65207c
Add icons for unicode emoji groups 2022-08-17 19:01:59 -04:00
Tusooa Zhu
28f33b3855
Make emoji picker use grouped unicode emojis 2022-08-17 19:01:59 -04:00
Tusooa Zhu
ebe517992c
Scroll active tab header into view in emoji picker 2022-08-17 19:01:20 -04:00
Tusooa Zhu
056f3f8bc5
Clean up emoji picker css 2022-08-17 19:01:20 -04:00
Tusooa Zhu
7c35b17d7f
Use StillImage to render emojis in emoji picker 2022-08-17 19:01:19 -04:00
Tusooa Zhu
347fe87071
Fix error on emoji picker first load
Ref: grouped-emoji-picker
2022-08-17 19:01:19 -04:00
Tusooa Zhu
1a5638238b
Group emojis only by pack and remove pack: prefix
Ref: grouped-emoji-picker
2022-08-17 19:01:19 -04:00
Tusooa Zhu
f50b3f5b05
Lint
Ref: grouped-emoji-picker
2022-08-17 19:01:19 -04:00
Tusooa Zhu
2161067423
Lazy-load emoji picker in post form
When clicking the reply button, we used to load the whole emoji picker.
This causes a considerable delay even if the user is not going to use
the emoji picker. Now the content of the emoji picker is loaded only
after the user has explicitly opened the emoji picker.

Ref: grouped-emoji-picker
2022-08-17 19:01:19 -04:00
Tusooa Zhu
f92a25cfab
Fix sticker picker heading tab
Ref: grouped-emoji-picker
2022-08-17 19:01:19 -04:00
Tusooa Zhu
f763624782
Fix vertical scrollbar of emoji picker header
Ref: grouped-emoji-picker
2022-08-17 19:01:19 -04:00
Tusooa Zhu
b9fcf8da11
Use StillImage for emoji group header
Ref: grouped-emoji-picker
2022-08-17 19:01:19 -04:00
Tusooa Zhu
c06b01db85
Remove useless class disabled in emoji picker
Ref: grouped-emoji-picker
2022-08-17 19:01:19 -04:00
Tusooa Zhu
e6fa4104e5
Clean up unused variables
Ref: grouped-emoji-picker
2022-08-17 19:01:19 -04:00
Tusooa Zhu
fa482135a7
Fix scrol->highlight behaviour
Ref: grouped-emoji-picker
2022-08-17 19:01:18 -04:00
Tusooa Zhu
cbe8a2a5d2
Clean up legacy code in emoji picker
Ref: grouped-emoji-picker
2022-08-17 19:01:18 -04:00
Tusooa Zhu
d9901d3914
Use lozad for lazy image loading
Ref: grouped-emoji-picker
2022-08-17 19:01:15 -04:00
Tusooa Zhu
5fb65a4b11
Lint 2022-08-17 19:00:06 -04:00
Tusooa Zhu
1cf2191593
Optimise emoji picker loading process 2022-08-17 19:00:06 -04:00
Tusooa Zhu
8629da50ca
Load emoji properly on first showing 2022-08-17 19:00:06 -04:00
Tusooa Zhu
3733e12b88
Load visible emoji groups when scrolling 2022-08-17 19:00:06 -04:00
Tusooa Zhu
c9557ef28c
Display all emoji groups on emoji picker header 2022-08-17 19:00:06 -04:00
Tusooa Zhu
d0b052a17e
Fix load more emoji action 2022-08-17 19:00:06 -04:00
Tusooa Zhu
16f01e1d3f
Group custom emojis by pack in emoji picker 2022-08-17 19:00:01 -04:00
Henry Jameson
03de3bf857 Merge branch 'scrolltotop' into shigusegubu-vue3
* scrolltotop:
  oops
2022-08-17 21:35:08 +03:00
Henry Jameson
e9ad922eeb oops 2022-08-17 21:34:56 +03:00
Henry Jameson
47d6071d72 Merge branch 'navigation-update' into shigusegubu-vue3
* navigation-update:
  fix routes and tests
  fix lists not having pins in edit mode
  fix edit mode checkbox showing up for anon users
2022-08-17 21:25:23 +03:00
Henry Jameson
711a610727 fix routes and tests 2022-08-17 21:25:02 +03:00
Henry Jameson
b440982220 fix lists not having pins in edit mode 2022-08-17 21:14:10 +03:00
Henry Jameson
f12198c2b3 fix edit mode checkbox showing up for anon users 2022-08-17 21:13:39 +03:00
Henry Jameson
0be86b37c8 Merge branch 'scrolltotop' into shigusegubu-vue3
* scrolltotop:
  add "scroll to top" button to timelines and notifications
2022-08-17 21:12:12 +03:00
Henry Jameson
7ef6f8f6a0 Merge branch 'navigation-update' into shigusegubu-vue3
* navigation-update:
  create new list UI
2022-08-17 21:12:07 +03:00
Henry Jameson
6428efcb4d Merge branch 'from/develop/tusooa/webpack-5' into shigusegubu-vue3
* from/develop/tusooa/webpack-5: (31 commits)
  fix yarn lock
  Remove legacy code for chunksSortMode
  Add FIXME comment about html-webpack-plugin-after-emit
  Use exact webpack version in package.json
  Reintroduce css minimizer
  Fix double dot in generated asset names
  Update webpack plugins
  Use assets in favour of loaders
  Fix tests
  Make webpack 5 work
  Fix production builds
  Update vue-loader
  Update url-loader
  Update sass-loader
  Update raw-loader
  Update mini-css-extract-plugin
  Update inject-loader
  Update file-loader, html-webpack-plugin, http-proxy-middleware and postcss-loader
  Update css-loader to 5
  Update dependency cross-spawn to v7
  ...
2022-08-17 21:01:04 +03:00
Henry Jameson
efc6b6b703 add "scroll to top" button to timelines and notifications 2022-08-17 20:49:20 +03:00