Browse Source

Return grid layout for emoji

Removed [contenteditable] from emoji on Apple devices
master
Eduard Kuzmenko 4 years ago
parent
commit
5ff12fabe0
  1. 4
      src/lib/richtextprocessor.ts
  2. 4
      src/scss/partials/_emojiDropdown.scss

4
src/lib/richtextprocessor.ts

@ -512,8 +512,8 @@ namespace RichTextProcessor {
break; break;
case 'messageEntityEmoji': case 'messageEntityEmoji':
html.push(emojiSupported ? html.push(emojiSupported ? // ! contenteditable="false" было у span, зачем?
`<span class="emoji" contenteditable="false">${encodeEntities(entityText)}</span>` : `<span class="emoji">${encodeEntities(entityText)}</span>` :
`<img src="assets/img/emoji/${entity.unicode}.png" alt="${encodeEntities(entityText)}" class="emoji">`); `<img src="assets/img/emoji/${entity.unicode}.png" alt="${encodeEntities(entityText)}" class="emoji">`);
break; break;

4
src/scss/partials/_emojiDropdown.scss

@ -162,10 +162,10 @@
.category-items { .category-items {
// ! No chrome 56 support // ! No chrome 56 support
/* display: grid; display: grid;
grid-column-gap: 2.44px; grid-column-gap: 2.44px;
grid-template-columns: repeat(auto-fill, 42px); grid-template-columns: repeat(auto-fill, 42px);
justify-content: space-between; */ justify-content: space-between;
font-size: 2.25rem; font-size: 2.25rem;
line-height: 2.25rem; line-height: 2.25rem;

Loading…
Cancel
Save