Skip to content

Commit

Permalink
Disable animation for indicator on hidden elements (matrix-org#8340)
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live authored and Johennes committed Apr 19, 2022
1 parent ef5d3c8 commit 7e0ff37
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,16 @@ $left-gutter: 64px;
visibility: visible;
}

// Inverse of the above to *disable* the animation on any indicators. This approach
// is less pretty, but is easier to target because otherwise we need to define the
// animation for when it's shown which means duplicating the style definition in
// multiple places.
.mx_EventTile:not(:hover):not(.mx_EventTile_actionBarFocused):not([data-whatinput='keyboard'] :focus-within):not(.focus-visible:focus-within) {
.mx_MessageActionBar .mx_Indicator {
animation: none;
}
}

@media only screen and (max-width: 480px) {

.mx_EventTile_line,
Expand Down

0 comments on commit 7e0ff37

Please sign in to comment.