Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Prevent the banner text from being selected, replacing the spacing va…
Browse files Browse the repository at this point in the history
…lues with the variable (#8756)
  • Loading branch information
luixxiul authored Jun 5, 2022
1 parent 323e911 commit dc1f53b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions res/css/views/messages/_MImageBody.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dc1f53b

Please sign in to comment.