Browse Source

Do not trim white space on formatting

master
Eduard Kuzmenko 4 years ago
parent
commit
f2a5419a1e
  1. 2
      src/lib/richtextprocessor.ts
  2. 13
      src/scss/partials/_chat.scss

2
src/lib/richtextprocessor.ts

@ -230,7 +230,7 @@ namespace RichTextProcessor { @@ -230,7 +230,7 @@ namespace RichTextProcessor {
newText.push(raw.substr(0, match.index));
let text = (match[3] || match[8] || match[11] || match[14]);
rawOffset -= text.length;
text = text.replace(/^\s+|\s+$/g, '');
//text = text.replace(/^\s+|\s+$/g, '');
rawOffset += text.length;
if(text.match(/^`*$/)) {

13
src/scss/partials/_chat.scss

@ -94,6 +94,18 @@ $chat-helper-size: 39px; @@ -94,6 +94,18 @@ $chat-helper-size: 39px;
background: inherit;
overflow: hidden;
} */
.btn-send-container {
.btn-menu-overlay {
z-index: 3;
}
}
.menu-send {
top: auto;
bottom: calc(100% + 10px);
//right: var(--chat-input-padding);
}
.input-message-input {
background: none;
@ -106,6 +118,7 @@ $chat-helper-size: 39px; @@ -106,6 +118,7 @@ $chat-helper-size: 39px;
resize: none;
border: none;
outline: none;
white-space: pre-wrap;
@media only screen and (max-height: 30rem) {
max-height: unquote('max(39px, calc(100vh - 10rem))');

Loading…
Cancel
Save