Honour prefers reduced motion for read receipts
This commit is contained in:
parent
86d2e577cf
commit
1d75726a75
3 changed files with 13 additions and 3 deletions
|
@ -28,6 +28,16 @@ $MessageTimestamp_width_hover: calc($MessageTimestamp_width - 2 * $EventTile_e2e
|
|||
|
||||
:root {
|
||||
font-size: 10px;
|
||||
|
||||
--transition-short: .1s;
|
||||
--transition-standard: .3s;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion) {
|
||||
:root {
|
||||
--transition-short: 0;
|
||||
--transition-standard: 0;
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
|
|
|
@ -284,8 +284,8 @@ $left-gutter: 64px;
|
|||
width: $font-14px;
|
||||
|
||||
transition:
|
||||
left .1s ease-out,
|
||||
top .3s ease-out;
|
||||
left var(--transition-short) ease-out,
|
||||
top var(--transition-standard) ease-out;
|
||||
}
|
||||
|
||||
.mx_EventTile_readAvatarRemainder {
|
||||
|
|
|
@ -73,7 +73,7 @@ export default class Velociraptor extends React.Component {
|
|||
}
|
||||
});
|
||||
|
||||
console.log("translation: "+oldNode.style.left+" -> "+c.props.style.left);
|
||||
// console.log("translation: "+oldNode.style.left+" -> "+c.props.style.left);
|
||||
}
|
||||
if (oldNode && oldNode.style.visibility === 'hidden' && c.props.style.visibility === 'visible') {
|
||||
oldNode.style.visibility = c.props.style.visibility;
|
||||
|
|
Loading…
Reference in a new issue