Skip to content

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 (matrix-org#8756)
luixxiul authored and JanBurp committed Jun 14, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8a891a6 commit f3c176d
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
@@ -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.

0 comments on commit f3c176d

Please sign in to comment.