From c55cad6227468285baf069894e82acb4f30eb38c Mon Sep 17 00:00:00 2001 From: PizZaKatZe Date: Fri, 31 Dec 2021 15:27:08 +0100 Subject: [PATCH] Disable user selection of UI elements --- front/src/Components/Chat/ChatElement.svelte | 1 + front/style/style.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/front/src/Components/Chat/ChatElement.svelte b/front/src/Components/Chat/ChatElement.svelte index 231e7260..4ac9c275 100644 --- a/front/src/Components/Chat/ChatElement.svelte +++ b/front/src/Components/Chat/ChatElement.svelte @@ -67,6 +67,7 @@ .messagePart { flex-grow: 1; max-width: 100%; + user-select: text; span.date { font-size: 80%; diff --git a/front/style/style.scss b/front/style/style.scss index 89437a99..32d95f57 100644 --- a/front/style/style.scss +++ b/front/style/style.scss @@ -1066,6 +1066,7 @@ div.action.danger p.action-body{ width: 100%; height: 100%; pointer-events: none; + user-select: none; & > div { position: relative;