From 1795ef24bffb43aea29633e86874545ae4a7bcf7 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Fri, 11 Jun 2021 18:39:32 +0300 Subject: [PATCH] Build --- src/components/chat/bubbles.ts | 2 +- src/lib/rootScope.ts | 2 +- src/scss/partials/_chatBubble.scss | 17 +++++++++-------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/components/chat/bubbles.ts b/src/components/chat/bubbles.ts index c282a3e3..f51d4497 100644 --- a/src/components/chat/bubbles.ts +++ b/src/components/chat/bubbles.ts @@ -2342,7 +2342,7 @@ export default class ChatBubbles { if(webpage.site_name) { let nameEl = document.createElement('a'); - nameEl.classList.add('name'); + nameEl.classList.add('webpage-name'); nameEl.setAttribute('target', '_blank'); nameEl.href = webpage.url || '#'; setInnerHTML(nameEl, RichTextProcessor.wrapEmojiText(webpage.site_name)); diff --git a/src/lib/rootScope.ts b/src/lib/rootScope.ts index 4f330fde..653e744c 100644 --- a/src/lib/rootScope.ts +++ b/src/lib/rootScope.ts @@ -76,7 +76,7 @@ export type BroadcastEvents = { 'audio_pause': void, 'state_cleared': void, - 'state_synchronized': number, + 'state_synchronized': number | void, 'state_synchronizing': number | void, 'contacts_update': number, diff --git a/src/scss/partials/_chatBubble.scss b/src/scss/partials/_chatBubble.scss index 5681b632..afcb3e47 100644 --- a/src/scss/partials/_chatBubble.scss +++ b/src/scss/partials/_chatBubble.scss @@ -747,10 +747,11 @@ $bubble-margin: .25rem; font-weight: 500 !important; } - .name { + .webpage-name { letter-spacing: -.3px; display: block; font-size: calc(1rem - 1px); + font-weight: 500 !important; @include hover() { text-decoration: underline; @@ -777,11 +778,11 @@ $bubble-margin: .25rem; .web, .reply { font-size: var(--messages-secondary-text-size); - - .name, .reply-title { - font-weight: 500 !important; - display: inline!important; - } + } + + .reply-title { + font-weight: 500 !important; + display: inline !important; } &.is-square-photo { @@ -1766,7 +1767,7 @@ $bubble-margin: .25rem; border-left: 2px var(--primary-color) solid; } - .quote .name, .reply-title/* , .reply i */ { + .quote .webpage-name, .reply-title/* , .reply i */ { color: var(--primary-color); } @@ -1916,7 +1917,7 @@ $bubble-margin: .25rem; background-color: var(--message-out-primary-color); } - .quote .name, .reply-title, .reply i { + .quote .webpage-name, .reply-title, .reply i { color: var(--message-out-primary-color); }