Render container always

This commit is contained in:
R Midhun Suresh 2026-01-29 00:55:58 +05:30
parent 4daf227137
commit 43297a6052
No known key found for this signature in database
3 changed files with 16 additions and 4 deletions

View File

@ -12,8 +12,6 @@ Please see LICENSE files in the repository root for full details.
background-color: $dark-panel-bg-color;
padding: 10px;
border-radius: 8px;
/* Reserve space for external timestamps, but also cap the width */
max-width: min(calc(100% - 2 * var(--MessageTimestamp-width)), 600px);
box-sizing: border-box;
display: grid;
grid-template-columns: 24px minmax(0, 1fr) min-content min-content;

View File

@ -1383,3 +1383,14 @@ $left-gutter: 64px;
margin-right: 0;
}
}
.mx_EventTile.mx_EventTile_bubbleContainer {
.mx_EventTile_line {
display: grid;
grid-template-columns: 64px auto;
}
}
.mx_EventTile_timestampContainer_hidden {
visibility: hidden;
}

View File

@ -1175,8 +1175,11 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
// Used to simplify the UI layout where necessary by not conditionally rendering an element at the start
const dummyTimestamp = useIRCLayout ? <span className="mx_MessageTimestamp" /> : null;
const timestamp = showTimestamp && ts ? messageTimestamp : dummyTimestamp;
const linkedTimestamp =
timestamp !== dummyTimestamp && !this.props.hideTimestamp ? linkedMessageTimestamp : dummyTimestamp;
const linkedTimestampContent = timestamp !== dummyTimestamp ? linkedMessageTimestamp : dummyTimestamp;
const linkedTimestampClass = classNames({
mx_EventTile_timestampContainer_hidden: !showTimestamp,
});
const linkedTimestamp = <div className={linkedTimestampClass}>{linkedTimestampContent}</div>;
let pinnedMessageBadge: JSX.Element | undefined;
if (PinningUtils.isPinned(MatrixClientPeg.safeGet(), this.props.mxEvent)) {