Apply inline start padding to selected lines on modern layout only (#9006)

This commit is contained in:
Suguru Hirahara 2022-08-01 06:19:22 +00:00 committed by GitHub
parent fb25b3729d
commit 82fb21aff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 5 deletions

View file

@ -424,6 +424,11 @@ $left-gutter: 64px;
top: 0;
}
}
&.mx_EventTile_selected .mx_EventTile_line {
// TODO: check if this would be necessary
padding-inline-start: calc(var(--EventTile_group_line-spacing-inline-start) + 20px);
}
}
&:hover {
@ -466,10 +471,6 @@ $left-gutter: 64px;
padding-top: 18px;
font-size: $font-14px;
position: relative;
&.mx_EventTile_selected.mx_EventTile_info .mx_EventTile_line {
padding-left: calc($left-gutter + 18px);
}
}
.mx_GenericEventListSummary {
@ -504,7 +505,8 @@ $left-gutter: 64px;
}
.mx_GenericEventListSummary_unstyledList > .mx_EventTile_info .mx_EventTile_avatar ~ .mx_EventTile_line {
padding-left: calc($left-gutter + 20px); /* override padding-left $left-gutter */
/* override padding-left $left-gutter */
padding-inline-start: calc(var(--EventTile_group_line-spacing-inline-start) + 20px);
}
}
}