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

Fix beta indicator dot causing excessive CPU usage #8340

Merged
merged 1 commit into from
Apr 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
robintown marked this conversation as resolved.
Show resolved Hide resolved
animation: none;
}
}

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

.mx_EventTile_line,
Expand Down