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

Commit

Permalink
fix style and compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
toger5 committed Nov 10, 2021
1 parent db5bd87 commit ffde8db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
4 changes: 1 addition & 3 deletions res/css/structures/_TimelineCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ limitations under the License.

padding-right: 0;



.mx_TimelineCard__header {
width: calc(100% - 60px);
margin-left: 6px;
Expand All @@ -30,7 +28,7 @@ limitations under the License.
flex: 1;
justify-content: space-between;
align-items: center;

span:first-of-type {
font-weight: 600;
font-size: 15px;
Expand Down
15 changes: 3 additions & 12 deletions src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,7 @@ export default class EventTile extends React.Component<IProps, IState> {
<div
className="mx_ThreadInfo"
onClick={() => {
dispatchShowThreadEvent(this.props.mxEvent,
undefined,
undefined,
this.props.threadViewPreviousCard );
dispatchShowThreadEvent(this.props.mxEvent);
}}
>
<span className="mx_ThreadInfo_thread-icon" />
Expand Down Expand Up @@ -1338,10 +1335,7 @@ export default class EventTile extends React.Component<IProps, IState> {
"data-has-reply": !!replyChain,
"onMouseEnter": () => this.setState({ hover: true }),
"onMouseLeave": () => this.setState({ hover: false }),
"onClick": () => dispatchShowThreadEvent(this.props.mxEvent,
undefined,
undefined,
this.props.threadViewPreviousCard ),
"onClick": () => dispatchShowThreadEvent(this.props.mxEvent),
}, <>
{ sender }
{ avatar }
Expand All @@ -1367,10 +1361,7 @@ export default class EventTile extends React.Component<IProps, IState> {
<RovingAccessibleTooltipButton
className="mx_MessageActionBar_maskButton mx_MessageActionBar_threadButton"
title={_t("Thread")}
onClick={() => dispatchShowThreadEvent(this.props.mxEvent,
undefined,
undefined,
this.props.threadViewPreviousCard )}
onClick={() => dispatchShowThreadEvent(this.props.mxEvent)}
key="thread"
/>
<ThreadListContextMenu
Expand Down

0 comments on commit ffde8db

Please sign in to comment.