Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
pleroma-fe
Commits
f1d6e6af
Unverified
Commit
f1d6e6af
authored
3 years ago
by
tusooa
Browse files
Options
Downloads
Patches
Plain Diff
Clean up unused variables
Ref: grouped-emoji-picker
parent
23edc4f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1711
Update stable - 2.5.0 release
,
!1408
Group emojis into packs in emoji picker
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/emoji_picker/emoji_picker.js
+1
-12
1 addition, 12 deletions
src/components/emoji_picker/emoji_picker.js
with
1 addition
and
12 deletions
src/components/emoji_picker/emoji_picker.js
+
1
−
12
View file @
f1d6e6af
...
...
@@ -15,13 +15,6 @@ library.add(
faSmileBeam
)
// At widest, approximately 20 emoji are visible in a row,
// loading 3 rows, could be overkill for narrow picker
const
LOAD_EMOJI_BY
=
60
// When to start loading new batch emoji, in pixels
const
LOAD_EMOJI_MARGIN
=
64
const
filterByKeyword
=
(
list
,
keyword
=
''
)
=>
{
if
(
keyword
===
''
)
return
list
...
...
@@ -54,10 +47,7 @@ const EmojiPicker = {
showingStickers
:
false
,
groupsScrolledClass
:
'
scrolled-top
'
,
keepOpen
:
false
,
customEmojiTimeout
:
null
,
customEmojiLoadAllConfirmed
:
false
,
groupLoadedCount
:
{},
firstLoaded
:
false
customEmojiTimeout
:
null
}
},
components
:
{
...
...
@@ -136,7 +126,6 @@ const EmojiPicker = {
},
watch
:
{
keyword
()
{
this
.
customEmojiLoadAllConfirmed
=
false
this
.
onScroll
()
// Wait for the dom to change
this
.
$nextTick
(()
=>
this
.
initializeLazyLoad
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment