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 { @@ -550,7 +550,7 @@ export class ChatInput {
public updateSendBtn() {
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';
this.btnSend.classList.toggle('send', icon == 'send');

3
src/lib/appManagers/appMessagesManager.ts

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

7
src/scss/partials/_chat.scss

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

4
src/scss/partials/_chatBubble.scss

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

Loading…
Cancel
Save