Fix broken thread list timestamp display (#7549)
This commit is contained in:
parent
336217f668
commit
8427bf46ef
2 changed files with 34 additions and 4 deletions
|
@ -803,6 +803,10 @@ $left-gutter: 64px;
|
||||||
margin: var(--topOffset) 16px var(--topOffset) 0;
|
margin: var(--topOffset) 16px var(--topOffset) 0;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-flow: wrap;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $system;
|
background-color: $system;
|
||||||
}
|
}
|
||||||
|
@ -848,16 +852,42 @@ $left-gutter: 64px;
|
||||||
|
|
||||||
.mx_SenderProfile {
|
.mx_SenderProfile {
|
||||||
margin-left: var(--leftOffset) !important;
|
margin-left: var(--leftOffset) !important;
|
||||||
|
flex: 1;
|
||||||
|
margin-right: 12px;
|
||||||
|
|
||||||
|
display: inline-flex;
|
||||||
|
// not a fan of the magic number here, but I just tweaked
|
||||||
|
// the hardcoded value of the current implementation
|
||||||
|
max-width: calc(100% - 96px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_SenderProfile_displayName,
|
||||||
|
.mx_SenderProfile_mxid {
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_SenderProfile_displayName {
|
||||||
|
flex: none;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_SenderProfile_mxid {
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_EventTile_line {
|
.mx_EventTile_line {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
padding-left: var(--leftOffset) !important;
|
padding-left: var(--leftOffset) !important;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_MessageTimestamp {
|
.mx_MessageTimestamp {
|
||||||
right: 0;
|
position: initial !important;
|
||||||
left: auto !important;
|
max-width: 80px;
|
||||||
top: -23px;
|
width: auto !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1473,11 +1473,11 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
}, <>
|
}, <>
|
||||||
{ sender }
|
{ sender }
|
||||||
{ avatar }
|
{ avatar }
|
||||||
|
{ timestamp }
|
||||||
<div
|
<div
|
||||||
className={lineClasses}
|
className={lineClasses}
|
||||||
key="mx_EventTile_line"
|
key="mx_EventTile_line"
|
||||||
>
|
>
|
||||||
{ linkedTimestamp }
|
|
||||||
{ this.renderE2EPadlock() }
|
{ this.renderE2EPadlock() }
|
||||||
<div className="mx_EventTile_body">
|
<div className="mx_EventTile_body">
|
||||||
{ MessagePreviewStore.instance.generatePreviewForEvent(this.props.mxEvent) }
|
{ MessagePreviewStore.instance.generatePreviewForEvent(this.props.mxEvent) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue