Browse Source

Fix emoji margin

master
morethanwords 3 years ago
parent
commit
ccb8e7f44e
  1. 5
      src/lib/appManagers/appMessagesManager.ts
  2. 4
      src/scss/partials/_chat.scss
  3. 6
      src/scss/partials/_chatBubble.scss
  4. 4
      src/scss/partials/_chatPinned.scss
  5. 2
      src/scss/style.scss

5
src/lib/appManagers/appMessagesManager.ts

@ -2645,7 +2645,10 @@ export class AppMessagesManager { @@ -2645,7 +2645,10 @@ export class AppMessagesManager {
} else if(document.type === 'round') {
addPart('AttachRound', undefined, message.message);
} else if(document.type === 'sticker') {
addPart(undefined, ((plain ? document.stickerEmojiRaw : document.stickerEmoji) || ''));
if(document.stickerEmojiRaw) {
addPart(undefined, (plain ? document.stickerEmojiRaw : document.stickerEmoji) + ' ');
}
addPart('AttachSticker');
text = '';
} else if(document.type === 'audio') {

4
src/scss/partials/_chat.scss

@ -947,10 +947,10 @@ $chat-helper-size: 36px; @@ -947,10 +947,10 @@ $chat-helper-size: 36px;
} */
}
span.emoji {
/* span.emoji {
margin: 0 .125rem;
// font-size: .8rem;
}
} */
}
.new-message-wrapper {

6
src/scss/partials/_chatBubble.scss

@ -450,7 +450,7 @@ $bubble-margin: .25rem; @@ -450,7 +450,7 @@ $bubble-margin: .25rem;
img.emoji {
height: 18px;
width: 18px;
margin: 0 .05rem;
// margin: 0 .05rem;
vertical-align: bottom;
}
@ -2437,8 +2437,8 @@ $bubble-margin: .25rem; @@ -2437,8 +2437,8 @@ $bubble-margin: .25rem;
width: .875rem;
}
img.emoji {
/* img.emoji {
margin: 0 .125rem;
}
} */
}
}

4
src/scss/partials/_chatPinned.scss

@ -133,11 +133,11 @@ @@ -133,11 +133,11 @@
user-select: none;
/* padding: .25rem; */
&.is-media {
/* &.is-media {
.emoji:first-child {
margin: 0 .25rem 0 0;
}
}
} */
&-content {
flex-grow: 1;

2
src/scss/style.scss

@ -874,7 +874,7 @@ not screen and ( min-resolution: 2dppx) { @@ -874,7 +874,7 @@ not screen and ( min-resolution: 2dppx) {
img.emoji {
width: 18px;
height: 18px;
margin: 0 .125rem;
// margin: 0 .125rem;
display: inline-block;
/* width: 100%;

Loading…
Cancel
Save