Skip to content

Commit f87b5ee

Browse files
author
Germain
authored
Make entire thread panel tile clickable (matrix-org#7371)
1 parent 2330292 commit f87b5ee

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

res/css/views/rooms/_EventTile.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,17 @@ $left-gutter: 64px;
776776
background-color: $quinary-content;
777777
}
778778

779+
&::before {
780+
content: "";
781+
position: absolute;
782+
top: 0;
783+
bottom: 0;
784+
left: 0;
785+
right: 0;
786+
/* enough to cover all sibling elements */
787+
z-index: 10;
788+
}
789+
779790
&:last-child {
780791
&::after {
781792
content: unset;

src/components/views/rooms/EventTile.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,13 +1411,12 @@ export default class EventTile extends React.Component<IProps, IState> {
14111411
"data-notification": this.state.threadNotification,
14121412
"onMouseEnter": () => this.setState({ hover: true }),
14131413
"onMouseLeave": () => this.setState({ hover: false }),
1414-
1414+
"onClick": () => dispatchShowThreadEvent(this.props.mxEvent),
14151415
}, <>
14161416
{ sender }
14171417
{ avatar }
14181418
<div
14191419
className={lineClasses}
1420-
onClick={() => dispatchShowThreadEvent(this.props.mxEvent)}
14211420
key="mx_EventTile_line"
14221421
>
14231422
{ linkedTimestamp }

0 commit comments

Comments
 (0)