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

Commit 1fc8009

Browse files
authored
Fix padding of messages in threads (#8574)
* Apply the padding setting of EventTile_line of ThreadView to TimelineCard Set 2px padding-top and padding-bottom property to EventTile_line on IRC/modern layout of TimelineCard. Signed-off-by: Suguru Hirahara <[email protected]> f Signed-off-by: Suguru Hirahara <[email protected]> * Move position property of mx_EventTile_e2eIcon from ThreadPanel to TimelineCard The E2E icon is available only on TimelineCard. Signed-off-by: Suguru Hirahara <[email protected]> * yarn run lint:style Signed-off-by: Suguru Hirahara <[email protected]>
1 parent b331099 commit 1fc8009

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

res/css/views/right_panel/_BaseCard.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ limitations under the License.
1515
*/
1616

1717
.mx_BaseCard {
18+
--BaseCard_EventTile_line-padding-block: 2px;
19+
1820
padding: 0 8px;
1921
overflow: hidden;
2022
display: flex;

res/css/views/right_panel/_ThreadPanel.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,6 @@ limitations under the License.
201201
}
202202
}
203203

204-
.mx_EventTile:not([data-layout=bubble]) {
205-
.mx_EventTile_e2eIcon {
206-
left: 8px;
207-
}
208-
}
209-
210204
.mx_MessageComposer {
211205
background-color: $background;
212206
border-radius: 8px;

res/css/views/right_panel/_TimelineCard.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ limitations under the License.
5757
.mx_EventTile_line {
5858
padding-inline-start: $left-gutter;
5959
padding-inline-end: 36px;
60+
padding-top: var(--BaseCard_EventTile_line-padding-block);
61+
padding-bottom: var(--BaseCard_EventTile_line-padding-block);
62+
63+
.mx_EventTile_e2eIcon {
64+
inset-inline-start: 8px;
65+
}
6066
}
6167

6268
.mx_DisambiguatedProfile,
@@ -109,10 +115,6 @@ limitations under the License.
109115
> .mx_DisambiguatedProfile {
110116
margin-left: 36px;
111117
}
112-
113-
.mx_EventTile_line {
114-
padding-bottom: 8px;
115-
}
116118
}
117119
}
118120

res/css/views/rooms/_EventTile.scss

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,11 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
869869

870870
&:not([data-layout=bubble]) {
871871
padding-top: $spacing-16;
872+
873+
.mx_EventTile_line {
874+
padding-top: var(--BaseCard_EventTile_line-padding-block);
875+
padding-bottom: var(--BaseCard_EventTile_line-padding-block);
876+
}
872877
}
873878
}
874879

@@ -980,13 +985,4 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
980985
padding-right: 11px; // align with right edge of input
981986
margin-right: 0; // align with right edge of background
982987
}
983-
984-
.mx_GroupLayout {
985-
.mx_EventTile {
986-
.mx_EventTile_line {
987-
padding-top: 2px;
988-
padding-bottom: 2px;
989-
}
990-
}
991-
}
992988
}

0 commit comments

Comments
 (0)