Skip to content

Commit f3c176d

Browse files
luixxiulJanBurp
authored andcommitted
Prevent the banner text from being selected, replacing the spacing values with the variable (matrix-org#8756)
1 parent 8a891a6 commit f3c176d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

res/css/views/messages/_MImageBody.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ $timeline-image-border-radius: 8px;
1919

2020
.mx_MImageBody_banner {
2121
position: absolute;
22-
bottom: 4px;
23-
left: 4px;
24-
padding: 4px;
22+
bottom: $spacing-4;
23+
left: $spacing-4;
24+
padding: $spacing-4;
2525
border-radius: $timeline-image-border-radius;
2626
font-size: $font-15px;
27-
27+
user-select: none; // prevent banner text from being selected
2828
pointer-events: none; // let the cursor go through to the media underneath
2929

3030
// Trying to match the width of the image is surprisingly difficult, so arbitrarily break it off early.

0 commit comments

Comments
 (0)