mirror of https://github.com/vector-im/riot-web
Make entire thread panel tile clickable (#7371)
parent
2330292c24
commit
f87b5ee996
|
@ -776,6 +776,17 @@ $left-gutter: 64px;
|
||||||
background-color: $quinary-content;
|
background-color: $quinary-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
/* enough to cover all sibling elements */
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
&::after {
|
&::after {
|
||||||
content: unset;
|
content: unset;
|
||||||
|
|
|
@ -1411,13 +1411,12 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
"data-notification": this.state.threadNotification,
|
"data-notification": this.state.threadNotification,
|
||||||
"onMouseEnter": () => this.setState({ hover: true }),
|
"onMouseEnter": () => this.setState({ hover: true }),
|
||||||
"onMouseLeave": () => this.setState({ hover: false }),
|
"onMouseLeave": () => this.setState({ hover: false }),
|
||||||
|
"onClick": () => dispatchShowThreadEvent(this.props.mxEvent),
|
||||||
}, <>
|
}, <>
|
||||||
{ sender }
|
{ sender }
|
||||||
{ avatar }
|
{ avatar }
|
||||||
<div
|
<div
|
||||||
className={lineClasses}
|
className={lineClasses}
|
||||||
onClick={() => dispatchShowThreadEvent(this.props.mxEvent)}
|
|
||||||
key="mx_EventTile_line"
|
key="mx_EventTile_line"
|
||||||
>
|
>
|
||||||
{ linkedTimestamp }
|
{ linkedTimestamp }
|
||||||
|
|
Loading…
Reference in New Issue