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

Commit 2d9fa81

Browse files
authored
Improve the visual balance of bubble layout (#9704)
1 parent 0358e03 commit 2d9fa81

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

res/css/views/rooms/_EventBubbleTile.pcss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ limitations under the License.
4343
--EventTile_bubble_gap-inline: 5px;
4444

4545
position: relative;
46-
margin-top: var(--gutterSize);
46+
/* Other half of the gutter is provided by margin-bottom on the last tile
47+
of the section */
48+
margin-top: calc(var(--gutterSize) / 2);
4749
margin-left: var(--EventTile_bubble-margin-inline-start);
4850
font-size: $font-14px;
4951

res/css/views/rooms/_EventTile.pcss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,11 @@ $left-gutter: 64px;
462462
&.mx_EventTile_continuation {
463463
margin-top: 2px;
464464
}
465+
&.mx_EventTile_lastInSection {
466+
/* Other half of the gutter is provided by margin-top on the first
467+
tile of the section */
468+
margin-bottom: calc(var(--gutterSize) / 2);
469+
}
465470
}
466471
}
467472

0 commit comments

Comments
 (0)