Compare commits
No commits in common. "5dac99d828a8023d19830e0b127edfa3273fef0c" and "49dba9cfab5ca983306979aa16c4135a9158a22a" have entirely different histories.
5dac99d828
...
49dba9cfab
5 changed files with 26 additions and 50 deletions
|
@ -135,9 +135,6 @@ const EmojiPicker = {
|
||||||
Popover
|
Popover
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
groupScroll (e) {
|
|
||||||
e.currentTarget.scrollLeft += e.deltaY + e.deltaX
|
|
||||||
},
|
|
||||||
updateEmojiSize () {
|
updateEmojiSize () {
|
||||||
const css = window.getComputedStyle(this.$refs.popover.$el)
|
const css = window.getComputedStyle(this.$refs.popover.$el)
|
||||||
const emojiSize = css.getPropertyValue('--emojiSize')
|
const emojiSize = css.getPropertyValue('--emojiSize')
|
||||||
|
|
|
@ -166,6 +166,24 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-group {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: left;
|
||||||
|
|
||||||
|
&-title {
|
||||||
|
font-size: 0.85em;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 0.3em;
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&-item {
|
&-item {
|
||||||
width: var(--emoji-size);
|
width: var(--emoji-size);
|
||||||
height: var(--emoji-size);
|
height: var(--emoji-size);
|
||||||
|
@ -188,38 +206,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.emoji-picker-emoji.-unicode {
|
.emoji-picker-emoji.-unicode {
|
||||||
font-size: calc(var(--emoji-size) * 0.8);
|
font-size: 1.6em;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-group {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(var(--__amount), 1fr);
|
|
||||||
justify-items: center;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: left;
|
|
||||||
grid-template-rows: repeat(1, auto);
|
|
||||||
|
|
||||||
&.first-row {
|
|
||||||
grid-template-rows: repeat(2, auto);
|
|
||||||
|
|
||||||
.emoji-item {
|
|
||||||
grid-row: 2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&-title {
|
|
||||||
font-size: 0.85em;
|
|
||||||
grid-column: span var(--__amount);
|
|
||||||
width: 100%;
|
|
||||||
margin: 0;
|
|
||||||
padding-left: 0.3em;
|
|
||||||
|
|
||||||
&.disabled {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,7 @@
|
||||||
@close="onPopoverClosed"
|
@close="onPopoverClosed"
|
||||||
>
|
>
|
||||||
<template #content>
|
<template #content>
|
||||||
<div
|
<div class="heading">
|
||||||
class="heading"
|
|
||||||
>
|
|
||||||
<!--
|
<!--
|
||||||
Body scroll lock needs to be on every scrollable element on safari iOS.
|
Body scroll lock needs to be on every scrollable element on safari iOS.
|
||||||
Here we tell it to enable scrolling for this element.
|
Here we tell it to enable scrolling for this element.
|
||||||
|
@ -20,7 +18,6 @@
|
||||||
ref="header"
|
ref="header"
|
||||||
v-body-scroll-lock="isInModal"
|
v-body-scroll-lock="isInModal"
|
||||||
class="emoji-tabs"
|
class="emoji-tabs"
|
||||||
@wheel.prevent="groupScroll"
|
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
v-for="group in filteredEmojiGroups"
|
v-for="group in filteredEmojiGroups"
|
||||||
|
@ -109,8 +106,6 @@
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="emoji-group"
|
class="emoji-group"
|
||||||
:class="{ ['first-row']: group.isFirstRow }"
|
|
||||||
:style="{ '--__amount': itemPerRow }"
|
|
||||||
>
|
>
|
||||||
<h6
|
<h6
|
||||||
v-if="group.isFirstRow"
|
v-if="group.isFirstRow"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import UserAvatar from '../user_avatar/user_avatar.vue'
|
import UserAvatar from '../user_avatar/user_avatar.vue'
|
||||||
import UserListPopover from '../user_list_popover/user_list_popover.vue'
|
import UserListPopover from '../user_list_popover/user_list_popover.vue'
|
||||||
import StillImage from 'src/components/still-image/still-image.vue'
|
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import {
|
import {
|
||||||
faPlus,
|
faPlus,
|
||||||
|
@ -20,8 +19,7 @@ const EmojiReactions = {
|
||||||
name: 'EmojiReactions',
|
name: 'EmojiReactions',
|
||||||
components: {
|
components: {
|
||||||
UserAvatar,
|
UserAvatar,
|
||||||
UserListPopover,
|
UserListPopover
|
||||||
StillImage
|
|
||||||
},
|
},
|
||||||
props: ['status'],
|
props: ['status'],
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
|
|
@ -18,11 +18,12 @@
|
||||||
<span
|
<span
|
||||||
class="reaction-emoji"
|
class="reaction-emoji"
|
||||||
>
|
>
|
||||||
<StillImage
|
<img
|
||||||
v-if="reaction.url"
|
v-if="reaction.url"
|
||||||
:src="reaction.url"
|
:src="reaction.url"
|
||||||
class="reaction-emoji-content"
|
class="reaction-emoji-content"
|
||||||
/>
|
width="1em"
|
||||||
|
>
|
||||||
<span
|
<span
|
||||||
v-else
|
v-else
|
||||||
class="reaction-emoji reaction-emoji-content"
|
class="reaction-emoji reaction-emoji-content"
|
||||||
|
@ -131,16 +132,12 @@
|
||||||
.reaction-emoji-content {
|
.reaction-emoji-content {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
width: var(--emoji-size);
|
width: auto;
|
||||||
height: var(--emoji-size);
|
height: auto;
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: calc(var(--emoji-size) * 0.8);
|
font-size: calc(var(--emoji-size) * 0.8);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
img {
|
|
||||||
object-fit: contain;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
|
|
Loading…
Add table
Reference in a new issue