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

Commit 6825b43

Browse files
authored
Set spacing declarations to elements in mx_EventTile_mediaLine (#8665)
1 parent 23babbb commit 6825b43

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

res/css/views/rooms/_EventTile.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -935,11 +935,18 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
935935
}
936936
}
937937

938-
.mx_MFileBody,
939-
.mx_MImageBody {
940-
display: block; // Apply margin to span element
941-
margin-inline-start: var(--ThreadView_group_spacing-start);
942-
margin-inline-end: var(--ThreadView_group_spacing-end);
938+
.mx_EventTile_mediaLine {
939+
// such as MImageBody
940+
> div,
941+
> span {
942+
margin-inline-start: var(--ThreadView_group_spacing-start);
943+
margin-inline-end: var(--ThreadView_group_spacing-end);
944+
}
945+
946+
// such as MAudioBody and MFileBody
947+
> span {
948+
display: block; // Apply the margin declarations to span element
949+
}
943950
}
944951

945952
.mx_ReplyChain_wrapper {

0 commit comments

Comments
 (0)