tweak reactions row some more, third try lucky

This commit is contained in:
Michael Telatynski 2021-05-13 13:59:10 +01:00
parent 36633ec025
commit 87ae47bd61
2 changed files with 28 additions and 13 deletions

View file

@ -17,6 +17,7 @@ limitations under the License.
import React from 'react';
import PropTypes from 'prop-types';
import { EventType } from "matrix-js-sdk/src/@types/event";
import classNames from "classnames";
import * as sdk from '../../../index';
import { _t } from '../../../languageHandler';
@ -43,7 +44,9 @@ const ReactButton = ({ mxEvent, reactions }) => {
return <React.Fragment>
<ContextMenuTooltipButton
className="mx_ReactionsRow_addReactionButton"
className={classNames("mx_ReactionsRow_addReactionButton", {
mx_ReactionsRow_addReactionButton_active: menuDisplayed,
})}
title={_t("Add reaction")}
onClick={openMenu}
isExpanded={menuDisplayed}