Skip to content

Commit efa156b

Browse files
committed
tweak compact theme
- add some comments - decrease size of info events and MELS (element-hq#4363.2) - reduce spacing between paragraphs, lists, etc (element-hq#4363.3 & 4) Signed-off-by: Hubert Chathi <hubert@uhoreg.ca>
1 parent 55084d3 commit efa156b

2 files changed

Lines changed: 31 additions & 6 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/elements/_MemberEventListSummary.scss‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,22 @@ limitations under the License.
5050
}
5151

5252
.mx_MatrixChat_useCompactLayout {
53+
.mx_MemberEventListSummary {
54+
font-size: 13px;
55+
.mx_EventTile_line {
56+
line-height: 20px;
57+
}
58+
}
59+
5360
.mx_MemberEventListSummary_line {
5461
line-height: 22px;
5562
}
5663

5764
.mx_MemberEventListSummary_toggle {
58-
margin-top: 2px;
65+
margin-top: 3px;
66+
}
67+
68+
.mx_TextualEvent.mx_MemberEventListSummary_summary {
69+
font-size: 13px;
5970
}
6071
}

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_EventTile.scss‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,23 @@ limitations under the License.
396396
}
397397

398398
.mx_EventTile.mx_EventTile_info {
399+
// same as the padding for non-compact .mx_EventTile.mx_EventTile_info
399400
padding-top: 0px;
401+
font-size: 13px;
402+
.mx_EventTile_line {
403+
line-height: 20px;
404+
}
405+
.mx_EventTile_avatar {
406+
top: 4px;
407+
}
400408
}
401409

402410
.mx_EventTile .mx_SenderProfile {
403411
font-size: 13px;
404412
}
405413

406414
.mx_EventTile.mx_EventTile_emote {
415+
// add a bit more space for emotes so that avatars don't collide
407416
padding-top: 8px;
408417
.mx_EventTile_avatar {
409418
top: 2px;
@@ -431,10 +440,6 @@ limitations under the License.
431440
top: 2px;
432441
}
433442

434-
.mx_EventTile.mx_EventTile_info .mx_EventTile_avatar {
435-
top: 5px;
436-
}
437-
438443
.mx_EventTile_e2eIcon {
439444
top: 7px;
440445
}
@@ -448,12 +453,21 @@ limitations under the License.
448453
}
449454

450455
.mx_EventTile_continuation .mx_EventTile_readAvatars,
451-
.mx_EventTile_info .mx_EventTile_readAvatars,
452456
.mx_EventTile_emote .mx_EventTile_readAvatars {
453457
top: 5px;
454458
}
455459

460+
.mx_EventTile_info .mx_EventTile_readAvatars {
461+
top: 4px;
462+
}
463+
456464
.mx_RoomView_MessageList h2 {
457465
margin-top: 6px;
458466
}
467+
468+
.mx_EventTile_content .markdown-body {
469+
p, ul, ol, dl, blockquote, pre, table {
470+
margin-bottom: 4px; // 1/4 of the non-compact margin-bottom
471+
}
472+
}
459473
}

0 commit comments

Comments
 (0)