Browse Source

Fix reply entities color

master
morethanwords 4 years ago
parent
commit
6a66f1b271
  1. 2
      src/components/chat/input.ts
  2. 3
      src/lib/appManagers/appMessagesManager.ts
  3. 7
      src/scss/partials/_chat.scss
  4. 4
      src/scss/partials/_chatBubble.scss

2
src/components/chat/input.ts

@ -550,7 +550,7 @@ export class ChatInput {
public updateSendBtn() { public updateSendBtn() {
let icon: 'send' | 'record'; let icon: 'send' | 'record';
if(!this.recorder || this.recording || !this.isInputEmpty() || this.forwardingMids.length) icon = 'send'; if(!this.recorder || this.recording || !this.isInputEmpty() || this.forwardingMids.length || this.editMsgID) icon = 'send';
else icon = 'record'; else icon = 'record';
this.btnSend.classList.toggle('send', icon == 'send'); this.btnSend.classList.toggle('send', icon == 'send');

3
src/lib/appManagers/appMessagesManager.ts

@ -2520,7 +2520,7 @@ export class AppMessagesManager {
} else if(document.type == 'sticker') { } else if(document.type == 'sticker') {
messageText = (document.stickerEmoji || '') + '<i>Sticker</i>'; messageText = (document.stickerEmoji || '') + '<i>Sticker</i>';
} else { } else {
messageText = '<i>' + document.file_name + '</i>'; messageText = '<i>' + document.file_name + (message.message ? ', ' : '') + '</i>';
} }
break; break;
@ -2548,6 +2548,7 @@ export class AppMessagesManager {
messageWrapped = RichTextProcessor.wrapRichText(text, { messageWrapped = RichTextProcessor.wrapRichText(text, {
noLinebreaks: true, noLinebreaks: true,
entities: entities, entities: entities,
noLinks: true,
noTextFormat: true noTextFormat: true
}); });
} }

7
src/scss/partials/_chat.scss

@ -784,7 +784,12 @@ $chat-helper-size: 39px;
i { i {
font-style: normal; font-style: normal;
color: $color-blue; //color: $color-blue;
color: #707579;
/* &.document-title {
color: #707579;
} */
} }
img.emoji { img.emoji {

4
src/scss/partials/_chatBubble.scss

@ -1310,7 +1310,7 @@ $bubble-margin: .25rem;
} */ } */
} }
.quote .name, .reply-title { .quote .name, .reply-title/* , .reply i */ {
color: $color-blue; color: $color-blue;
} }
@ -1456,7 +1456,7 @@ $bubble-margin: .25rem;
background-color: $darkgreen; background-color: $darkgreen;
} }
.quote .name, .reply-title { .quote .name, .reply-title, .reply i {
color: $darkgreen; color: $darkgreen;
} }

Loading…
Cancel
Save