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

Commit 57595bc

Browse files
authored
Fix misalignment with Event List Summaries (#7865)
* Fix misalignment with Event List Summaries * simplify styling
1 parent 18e86f3 commit 57595bc

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

res/css/views/messages/_ViewSourceEvent.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ limitations under the License.
1919
opacity: 0.6;
2020
font-size: $font-12px;
2121
width: 100%;
22+
margin-left: 20px;
2223

2324
pre, code {
2425
flex: 1;

res/css/views/rooms/_EventTile.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,6 @@ $left-gutter: 64px;
280280
}
281281
}
282282

283-
.mx_EventTile:not([data-layout=bubble]).mx_EventTile_info .mx_EventTile_line,
284-
.mx_GenericEventListSummary:not([data-layout=bubble]) > :not(.mx_EventTile) .mx_EventTile_avatar ~ .mx_EventTile_line {
285-
padding-left: calc($left-gutter + 18px);
286-
}
287-
288283
.mx_GenericEventListSummary:not([data-layout=bubble]) .mx_EventTile_line {
289284
padding-left: $left-gutter;
290285
}

src/components/views/elements/GenericEventListSummary.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ const GenericEventListSummary: React.FC<IProps> = ({
8181
if (expanded) {
8282
body = <React.Fragment>
8383
<div className="mx_GenericEventListSummary_line">&nbsp;</div>
84-
{ children }
84+
<ol className="mx_GenericEventListSummary_unstyledList">
85+
{ children }
86+
</ol>
8587
</React.Fragment>;
8688
} else {
8789
const uniqueMembers = uniqBy(summaryMembers.filter(member => {

0 commit comments

Comments
 (0)