From f3c176d3ed5824e0966d3add6e25453d88ce61b9 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sun, 5 Jun 2022 06:30:29 +0000 Subject: [PATCH] Prevent the banner text from being selected, replacing the spacing values with the variable (#8756) --- res/css/views/messages/_MImageBody.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/res/css/views/messages/_MImageBody.scss b/res/css/views/messages/_MImageBody.scss index 07d0124d431..ba29f06cb03 100644 --- a/res/css/views/messages/_MImageBody.scss +++ b/res/css/views/messages/_MImageBody.scss @@ -19,12 +19,12 @@ $timeline-image-border-radius: 8px; .mx_MImageBody_banner { position: absolute; - bottom: 4px; - left: 4px; - padding: 4px; + bottom: $spacing-4; + left: $spacing-4; + padding: $spacing-4; border-radius: $timeline-image-border-radius; font-size: $font-15px; - + user-select: none; // prevent banner text from being selected pointer-events: none; // let the cursor go through to the media underneath // Trying to match the width of the image is surprisingly difficult, so arbitrarily break it off early.