diff --git a/client/src/builtin/EmoteAc.js b/client/src/builtin/EmoteAc.js index 1659c961..b2cd4c0b 100644 --- a/client/src/builtin/EmoteAc.js +++ b/client/src/builtin/EmoteAc.js @@ -42,7 +42,7 @@ export default new class EmoteAc extends BuiltinModule { return { type: 'imagetext', title: [`Your ${acType ? 'most used' : 'favourite'} emotes`, '', `⬅ ${acType ? 'Favourites' : 'Most Used'} ⮕`], - items: EmoteModule[acType ? 'mostUsed' : 'favourites'].sort((a, b) => b.useCount - a.useCount).slice(0, 10).map(mu => { + items: EmoteModule[acType ? 'mostUsed' : 'favourites'].sort((a, b) => b.useCount - a.useCount).map(mu => { return { key: acType ? mu.key : mu.name, value: { diff --git a/client/src/styles/partials/generic/autocomplete.scss b/client/src/styles/partials/generic/autocomplete.scss index 0ee5aba0..7f8ed65c 100644 --- a/client/src/styles/partials/generic/autocomplete.scss +++ b/client/src/styles/partials/generic/autocomplete.scss @@ -9,6 +9,7 @@ position: absolute; right: 0; background-color: #2f3136; + max-height: 370px; .bd-acInner { padding-bottom: 8px; @@ -86,4 +87,31 @@ border-top-left-radius: 0; border-top-right-radius: 0; } + + .bd-acScroller { + overflow-x: hidden; + overflow-y: auto; + max-height: 320px; + + &::-webkit-scrollbar { + width: 14px; + } + + &::-webkit-scrollbar-thumb { + background-color: #202225; + border: 3px solid #2f3136; + } + + &::-webkit-scrollbar-thumb, + &::-webkit-scrollbar-track-piece { + background-clip: padding-box; + border-radius: 7px; + } + + &::-webkit-scrollbar-track-piece { + background-color: #2f3136; + border-color: #2f3136; + border: 3px solid #2f3136; + } + } } diff --git a/client/src/ui/components/common/Autocomplete.vue b/client/src/ui/components/common/Autocomplete.vue index b377e87d..0be2a163 100644 --- a/client/src/ui/components/common/Autocomplete.vue +++ b/client/src/ui/components/common/Autocomplete.vue @@ -20,12 +20,14 @@ -