From fbc95ba64b6cdb235a4b67eb9f0cd4f9b171b43e Mon Sep 17 00:00:00 2001 From: HF Date: Wed, 9 Feb 2022 22:09:08 +0100 Subject: [PATCH] make Enclosure Parsing more inclusive --- src/actions/index.js | 10 ++++++---- src/core/MString.js | 2 -- src/styles/default.css | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/actions/index.js b/src/actions/index.js index 96712f0..c0345e0 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -848,16 +848,18 @@ export function hideAllWindowTypes( } export function openChatWindow() { + const width = 350; + const height = 350; return openWindow( 'CHAT', '', false, true, { chatChannel: 1, inputMessage: '' }, - window.innerWidth - 350 - 62, - window.innerHeight - 220 - 64, - 350, - 220, + window.innerWidth - width - 62, + window.innerHeight - height - 64, + width, + height, ); } diff --git a/src/core/MString.js b/src/core/MString.js index add59a7..a2cc3f7 100644 --- a/src/core/MString.js +++ b/src/core/MString.js @@ -119,8 +119,6 @@ export default class MString { const chr = this.txt[yEnd]; if (yEnd >= this.txt.length || chr === '\n' - || chr === '[' - || chr === '(' ) { return null; } diff --git a/src/styles/default.css b/src/styles/default.css index 1ae0050..f679455 100644 --- a/src/styles/default.css +++ b/src/styles/default.css @@ -680,7 +680,7 @@ tr:nth-child(even) { .chatmsg { font-size: 13px; user-select: text; - margin: 0; + margin: 5px 0 0 0; } .chatmsg:hover { background-color: #ececec;