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

Commit 81f2b19

Browse files
authored
Tweak timeline card layout (#7743)
1 parent 76cafb7 commit 81f2b19

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

res/css/views/right_panel/_TimelineCard.scss

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,43 @@ limitations under the License.
2828

2929
.mx_BaseCard_header {
3030
margin: 5px 0 9px 0;
31+
3132
.mx_BaseCard_close {
3233
margin: 8px;
3334
right: 0;
3435
}
3536
}
37+
3638
.mx_AutoHideScrollbar {
3739
padding-right: 10px;
3840
width: calc(100% - 10px);
3941
}
4042

41-
// Style to optimize the layout for the right panel area
43+
.mx_NewRoomIntro {
44+
margin-left: 36px;
45+
}
46+
4247
.mx_EventTile_content {
4348
margin-right: 0;
4449
}
50+
4551
.mx_EventTile:not([data-layout="bubble"]) .mx_EventTile_line {
4652
padding-left: 36px;
4753
padding-right: 36px;
4854
}
4955

56+
.mx_EventTile:not([data-layout="bubble"]) .mx_ReactionsRow {
57+
padding-left: 36px;
58+
padding-right: 36px;
59+
}
60+
5061
.mx_GroupLayout .mx_EventTile > .mx_SenderProfile {
5162
margin-left: 36px;
5263
}
64+
5365
.mx_EventTile:not([data-layout="bubble"]) .mx_EventTile_avatar {
5466
top: 12px;
55-
left: 0px;
67+
left: -3px;
5668
}
5769

5870
.mx_CallEvent_wrapper {
@@ -62,6 +74,7 @@ limitations under the License.
6274
margin: 4px;
6375
}
6476
}
77+
6578
.mx_EventTile:not([data-layout="bubble"]) .mx_MessageTimestamp {
6679
right: -4px;
6780
left: auto;
@@ -70,18 +83,32 @@ limitations under the License.
7083
.mx_EventTile:not([data-layout="bubble"]) .mx_EventTile_msgOption {
7184
margin-right: 2px;
7285
}
86+
87+
.mx_EventListSummary:not([data-layout=bubble]) .mx_EventTile_line {
88+
padding-left: 36px;
89+
}
90+
7391
.mx_GroupLayout .mx_EventTile .mx_EventTile_line {
7492
padding-bottom: 8px;
7593
}
94+
7695
.mx_EventTile_readAvatars {
7796
top: -10px;
7897
}
7998

80-
// mx_EventTile_info
8199
.mx_EventTile:not([data-layout="bubble"]).mx_EventTile_info .mx_EventTile_line {
82100
padding-left: 36px;
83101
}
102+
84103
.mx_EventTile:not([data-layout="bubble"]).mx_EventTile_info .mx_EventTile_avatar {
85104
left: 18px;
86105
}
106+
107+
.mx_WhoIsTypingTile {
108+
margin-left: -12px; // undo padding on the message list
109+
}
110+
111+
.mx_WhoIsTypingTile_avatars {
112+
flex-basis: 48px; // 12 (padding on message list) + 36 (padding on event lines)
113+
}
87114
}

res/css/views/rooms/_EventTile.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ $left-gutter: 64px;
286286
}
287287

288288
.mx_EventListSummary:not([data-layout=bubble]) .mx_EventTile_line {
289-
padding-left: calc($left-gutter);
289+
padding-left: $left-gutter;
290290
}
291291

292292
/* all the overflow-y: hidden; are to trap Zalgos -

res/css/views/rooms/_WhoIsTypingTile.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ limitations under the License.
2323

2424
/* position the indicator in the same place horizontally as .mx_EventTile_avatar. */
2525
.mx_WhoIsTypingTile_avatars {
26-
flex: 0 0 83px; // 18 + 65
26+
flex: 0 0 82px; // 18 (padding on message list) + 64 (padding on event lines)
2727
text-align: center;
2828
}
2929

0 commit comments

Comments
 (0)