Browse Source

Build

master
Eduard Kuzmenko 4 years ago
parent
commit
1795ef24bf
  1. 2
      src/components/chat/bubbles.ts
  2. 2
      src/lib/rootScope.ts
  3. 15
      src/scss/partials/_chatBubble.scss

2
src/components/chat/bubbles.ts

@ -2342,7 +2342,7 @@ export default class ChatBubbles {
if(webpage.site_name) { if(webpage.site_name) {
let nameEl = document.createElement('a'); let nameEl = document.createElement('a');
nameEl.classList.add('name'); nameEl.classList.add('webpage-name');
nameEl.setAttribute('target', '_blank'); nameEl.setAttribute('target', '_blank');
nameEl.href = webpage.url || '#'; nameEl.href = webpage.url || '#';
setInnerHTML(nameEl, RichTextProcessor.wrapEmojiText(webpage.site_name)); setInnerHTML(nameEl, RichTextProcessor.wrapEmojiText(webpage.site_name));

2
src/lib/rootScope.ts

@ -76,7 +76,7 @@ export type BroadcastEvents = {
'audio_pause': void, 'audio_pause': void,
'state_cleared': void, 'state_cleared': void,
'state_synchronized': number, 'state_synchronized': number | void,
'state_synchronizing': number | void, 'state_synchronizing': number | void,
'contacts_update': number, 'contacts_update': number,

15
src/scss/partials/_chatBubble.scss

@ -747,10 +747,11 @@ $bubble-margin: .25rem;
font-weight: 500 !important; font-weight: 500 !important;
} }
.name { .webpage-name {
letter-spacing: -.3px; letter-spacing: -.3px;
display: block; display: block;
font-size: calc(1rem - 1px); font-size: calc(1rem - 1px);
font-weight: 500 !important;
@include hover() { @include hover() {
text-decoration: underline; text-decoration: underline;
@ -777,11 +778,11 @@ $bubble-margin: .25rem;
.web, .reply { .web, .reply {
font-size: var(--messages-secondary-text-size); font-size: var(--messages-secondary-text-size);
}
.name, .reply-title { .reply-title {
font-weight: 500 !important; font-weight: 500 !important;
display: inline!important; display: inline !important;
}
} }
&.is-square-photo { &.is-square-photo {
@ -1766,7 +1767,7 @@ $bubble-margin: .25rem;
border-left: 2px var(--primary-color) solid; border-left: 2px var(--primary-color) solid;
} }
.quote .name, .reply-title/* , .reply i */ { .quote .webpage-name, .reply-title/* , .reply i */ {
color: var(--primary-color); color: var(--primary-color);
} }
@ -1916,7 +1917,7 @@ $bubble-margin: .25rem;
background-color: var(--message-out-primary-color); 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); color: var(--message-out-primary-color);
} }

Loading…
Cancel
Save