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

Set spacing declarations to elements in mx_EventTile_mediaLine #8665

Merged
merged 2 commits into from
May 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -935,11 +935,18 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
}
}

.mx_MFileBody,
.mx_MImageBody {
display: block; // Apply margin to span element
margin-inline-start: var(--ThreadView_group_spacing-start);
margin-inline-end: var(--ThreadView_group_spacing-end);
.mx_EventTile_mediaLine {
// such as MImageBody
> div,
> span {
margin-inline-start: var(--ThreadView_group_spacing-start);
margin-inline-end: var(--ThreadView_group_spacing-end);
}

// such as MAudioBody and MFileBody
> span {
display: block; // Apply the margin declarations to span element
}
}

.mx_ReplyChain_wrapper {
Expand Down