From fa4e22c4dc408d7a0e0a2e38d0f52b89d45be8df Mon Sep 17 00:00:00 2001 From: PerikiyoXD Date: Thu, 10 Oct 2024 11:28:49 +0200 Subject: [PATCH] Allow scratch name to be highlighted and copied for non-owners (#1359) * Add scratchName class to allow highlighting and copying the scratch name * Use .name to allow selecting scratch name --- frontend/src/components/Scratch/ScratchToolbar.module.scss | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Scratch/ScratchToolbar.module.scss b/frontend/src/components/Scratch/ScratchToolbar.module.scss index cb311339a..61f82c087 100644 --- a/frontend/src/components/Scratch/ScratchToolbar.module.scss +++ b/frontend/src/components/Scratch/ScratchToolbar.module.scss @@ -51,9 +51,8 @@ $padding: 4px; text-align: center; - &.editable { - cursor: text; - } + cursor: text; + user-select: text; &[contenteditable] { text-overflow: initial;