From a0d5463e1543a8a6b5a652a28d5f58e10d155887 Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Wed, 6 Sep 2023 15:42:32 +0200 Subject: [PATCH] Editor box preview mention space ahead and word break fix --- src/components/NewNote/EditBox/EditBox.module.scss | 1 - src/components/NewNote/EditBox/EditBox.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/NewNote/EditBox/EditBox.module.scss b/src/components/NewNote/EditBox/EditBox.module.scss index 9f48742..b1fb713 100644 --- a/src/components/NewNote/EditBox/EditBox.module.scss +++ b/src/components/NewNote/EditBox/EditBox.module.scss @@ -231,7 +231,6 @@ textarea::-webkit-scrollbar{ min-height: 60px; outline: 0px solid transparent; word-wrap: break-word; - word-break: break-all; font-size: 16px; line-height: 20px; font-weight: 400; diff --git a/src/components/NewNote/EditBox/EditBox.tsx b/src/components/NewNote/EditBox/EditBox.tsx index 67fb26d..6fbf7cf 100644 --- a/src/components/NewNote/EditBox/EditBox.tsx +++ b/src/components/NewNote/EditBox/EditBox.tsx @@ -617,7 +617,7 @@ const EditBox: Component<{ @{name}; // @ts-ignore - return link.outerHTML || ` @${name}`; + return ` ${link.outerHTML}` || ` @${name}`; }); };