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

Commit

Permalink
Stop using :not() pseudo class for mx_MImageBody to decrease the spec…
Browse files Browse the repository at this point in the history
…ificity of the rule for images on file panel (#8886)
  • Loading branch information
luixxiul authored Jun 25, 2022
1 parent 9a94586 commit 4ad8b19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 0 additions & 4 deletions res/css/structures/_FilePanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ limitations under the License.
}
}

.mx_FilePanel .mx_EventTile .mx_MImageBody {
margin-right: 0px;
}

.mx_FilePanel .mx_EventTile .mx_MFileBody {
line-height: 2.4rem;
}
Expand Down
9 changes: 7 additions & 2 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
gap: $spacing-4;
}

&[data-layout=irc],
&[data-layout=group] {
.mx_MImageBody {
margin-right: 34px;
}
}

&[data-layout=group] {
> .mx_DisambiguatedProfile {
line-height: $font-20px;
Expand Down Expand Up @@ -275,8 +282,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
}

.mx_MImageBody {
margin-right: 34px;

.mx_MImageBody_thumbnail_container {
justify-content: flex-start;
min-height: $font-44px;
Expand Down

0 comments on commit 4ad8b19

Please sign in to comment.