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

Commit 2234f04

Browse files
authored
Disable animation for indicator on hidden elements (#8340)
1 parent 3750b90 commit 2234f04

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

res/css/views/rooms/_EventTile.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,16 @@ $left-gutter: 64px;
694694
visibility: visible;
695695
}
696696

697+
// Inverse of the above to *disable* the animation on any indicators. This approach
698+
// is less pretty, but is easier to target because otherwise we need to define the
699+
// animation for when it's shown which means duplicating the style definition in
700+
// multiple places.
701+
.mx_EventTile:not(:hover):not(.mx_EventTile_actionBarFocused):not([data-whatinput='keyboard'] :focus-within):not(.focus-visible:focus-within) {
702+
.mx_MessageActionBar .mx_Indicator {
703+
animation: none;
704+
}
705+
}
706+
697707
@media only screen and (max-width: 480px) {
698708

699709
.mx_EventTile_line,

0 commit comments

Comments
 (0)