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

Commit 4ad8b19

Browse files
authored
Stop using :not() pseudo class for mx_MImageBody to decrease the specificity of the rule for images on file panel (#8886)
1 parent 9a94586 commit 4ad8b19

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

res/css/structures/_FilePanel.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ limitations under the License.
5555
}
5656
}
5757

58-
.mx_FilePanel .mx_EventTile .mx_MImageBody {
59-
margin-right: 0px;
60-
}
61-
6258
.mx_FilePanel .mx_EventTile .mx_MFileBody {
6359
line-height: 2.4rem;
6460
}

res/css/views/rooms/_EventTile.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
7272
gap: $spacing-4;
7373
}
7474

75+
&[data-layout=irc],
76+
&[data-layout=group] {
77+
.mx_MImageBody {
78+
margin-right: 34px;
79+
}
80+
}
81+
7582
&[data-layout=group] {
7683
> .mx_DisambiguatedProfile {
7784
line-height: $font-20px;
@@ -275,8 +282,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
275282
}
276283

277284
.mx_MImageBody {
278-
margin-right: 34px;
279-
280285
.mx_MImageBody_thumbnail_container {
281286
justify-content: flex-start;
282287
min-height: $font-44px;

0 commit comments

Comments
 (0)