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

Commit 1dae504

Browse files
committed
yarn run lint:style --fix
Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 0b49106 commit 1dae504

File tree

2 files changed

+50
-52
lines changed

2 files changed

+50
-52
lines changed

res/css/views/right_panel/_TimelineCard.scss

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -63,58 +63,58 @@ limitations under the License.
6363
}
6464

6565
&:not([data-layout="bubble"]) {
66-
&.mx_EventTile_info .mx_EventTile_line,
67-
.mx_EventTile_line {
68-
padding: var(--BaseCard_EventTile_line-padding-block) var(--BaseCard_EventTile-spacing-inline);
69-
padding-inline-end: $MessageTimestamp_width; // ensure timestamp is not hidden
66+
&.mx_EventTile_info .mx_EventTile_line,
67+
.mx_EventTile_line {
68+
padding: var(--BaseCard_EventTile_line-padding-block) var(--BaseCard_EventTile-spacing-inline);
69+
padding-inline-end: $MessageTimestamp_width; // ensure timestamp is not hidden
7070

71-
.mx_EventTile_e2eIcon {
72-
inset-inline-start: 8px;
71+
.mx_EventTile_e2eIcon {
72+
inset-inline-start: 8px;
73+
}
7374
}
74-
}
7575

76-
.mx_DisambiguatedProfile,
77-
.mx_ReactionsRow,
78-
.mx_ThreadSummary {
79-
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
80-
}
76+
.mx_DisambiguatedProfile,
77+
.mx_ReactionsRow,
78+
.mx_ThreadSummary {
79+
margin-inline-start: var(--BaseCard_EventTile-spacing-inline);
80+
}
8181

82-
.mx_ReactionsRow {
83-
padding: 0;
82+
.mx_ReactionsRow {
83+
padding: 0;
8484

85-
// See margin setting of ReactionsRow on _EventTile.scss
86-
margin-right: 8px;
87-
}
85+
// See margin setting of ReactionsRow on _EventTile.scss
86+
margin-right: 8px;
87+
}
8888

89-
.mx_ThreadSummary {
90-
margin-right: 0;
91-
max-width: min(calc(100% - 36px), 600px);
92-
}
89+
.mx_ThreadSummary {
90+
margin-right: 0;
91+
max-width: min(calc(100% - 36px), 600px);
92+
}
9393

94-
.mx_EventTile_avatar {
95-
position: absolute; // for IRC layout
96-
top: 12px;
97-
left: -3px;
98-
}
94+
.mx_EventTile_avatar {
95+
position: absolute; // for IRC layout
96+
top: 12px;
97+
left: -3px;
98+
}
9999

100-
.mx_MessageTimestamp {
101-
position: absolute; // for modern layout and IRC layout
102-
inset-inline-start: auto;
103-
inset-inline-end: 0;
104-
}
100+
.mx_MessageTimestamp {
101+
position: absolute; // for modern layout and IRC layout
102+
inset-inline-start: auto;
103+
inset-inline-end: 0;
104+
}
105105

106-
.mx_EventTile_msgOption {
107-
// Override mx_EventTile_msgOption of mx_EventTile:not([data-layout="bubble"])
108-
margin-inline-end: 0;
109-
}
106+
.mx_EventTile_msgOption {
107+
// Override mx_EventTile_msgOption of mx_EventTile:not([data-layout="bubble"])
108+
margin-inline-end: 0;
109+
}
110110

111-
&.mx_EventTile_info {
112-
.mx_EventTile_avatar {
113-
left: 18px;
111+
&.mx_EventTile_info {
112+
.mx_EventTile_avatar {
113+
left: 18px;
114+
}
114115
}
115116
}
116117
}
117-
}
118118

119119
.mx_EventTile,
120120
.mx_GenericEventListSummary {

res/css/views/rooms/_EventBubbleTile.scss

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,17 @@ limitations under the License.
668668
}
669669
}
670670

671+
/* events that do not require bubble layout */
672+
.mx_EventTile_line {
673+
background: transparent;
674+
}
675+
676+
&:hover {
677+
&::before {
678+
background: transparent;
679+
}
680+
}
681+
671682
&::after {
672683
content: "";
673684
clear: both;
@@ -711,19 +722,6 @@ limitations under the License.
711722
}
712723
}
713724

714-
/* events that do not require bubble layout */
715-
.mx_GenericEventListSummary[data-layout=bubble] {
716-
.mx_EventTile_line {
717-
background: transparent;
718-
}
719-
720-
&:hover {
721-
&::before {
722-
background: transparent;
723-
}
724-
}
725-
}
726-
727725
.mx_EventTile_tileError[data-layout=bubble] .mx_EventTile_line {
728726
flex-direction: column; // restore the centering
729727
}

0 commit comments

Comments
 (0)