Browse Source

Fix white space on line begin

Fix [messageActionHistoryClear]
master
Eduard Kuzmenko 4 years ago
parent
commit
388075ace3
  1. 1
      src/components/sidebarRight/tabs/sharedMedia.ts
  2. 3
      src/lib/appManagers/appImManager.ts
  3. 2
      src/lib/langPack.ts
  4. 1
      src/scss/partials/_chatBubble.scss

1
src/components/sidebarRight/tabs/sharedMedia.ts

@ -503,6 +503,7 @@ export default class AppSharedMediaTab implements SliderTab { @@ -503,6 +503,7 @@ export default class AppSharedMediaTab implements SliderTab {
const match = RichTextProcessor.matchUrl(message.message);
if(!match) {
this.log.error('NO ENTITY AND NO MATCH:', message);
continue;
}
url = match[0];

3
src/lib/appManagers/appImManager.ts

@ -66,6 +66,7 @@ let TEST_SCROLL = TEST_SCROLL_TIMES; @@ -66,6 +66,7 @@ let TEST_SCROLL = TEST_SCROLL_TIMES;
const LEFT_COLUMN_ACTIVE_CLASSNAME = 'is-left-column-shown';
export const CHAT_ANIMATION_GROUP = 'chat';
const IGNORE_ACTIONS = ['messageActionHistoryClear'];
export class AppImManager {
public columnEl = document.getElementById('column-center') as HTMLDivElement;
@ -1749,7 +1750,7 @@ export class AppImManager { @@ -1749,7 +1750,7 @@ export class AppImManager {
if(message._ == 'messageService') {
let action = message.action;
let _ = action._;
if(langPack.hasOwnProperty(_) && !langPack[_]) {
if(IGNORE_ACTIONS.includes(_) || (langPack.hasOwnProperty(_) && !langPack[_])) {
return bubble;
}

2
src/lib/langPack.ts

@ -16,7 +16,7 @@ export const langPack: {[actionType: string]: string} = { @@ -16,7 +16,7 @@ export const langPack: {[actionType: string]: string} = {
"messageActionChannelEditTitle": "Channel renamed",
"messageActionChannelEditPhoto": "Channel photo updated",
"messageActionChannelDeletePhoto": "Channel photo removed",
"messageActionHistoryClear": "",//"History cleared",
"messageActionHistoryClear": "History was cleared",
"messageActionChannelMigrateFrom": "",

1
src/scss/partials/_chatBubble.scss

@ -854,6 +854,7 @@ $bubble-margin: .25rem; @@ -854,6 +854,7 @@ $bubble-margin: .25rem;
color: #000;
line-height: 21px;
word-break: break-word;
white-space: pre-wrap; // * fix spaces on line begin
/* * {
overflow: hidden;

Loading…
Cancel
Save