diff --git a/res/css/views/rooms/_EventBubbleTile.pcss b/res/css/views/rooms/_EventBubbleTile.pcss index ca9ec513f87..6b288cd91e0 100644 --- a/res/css/views/rooms/_EventBubbleTile.pcss +++ b/res/css/views/rooms/_EventBubbleTile.pcss @@ -43,7 +43,9 @@ limitations under the License. --EventTile_bubble_gap-inline: 5px; position: relative; - margin-top: var(--gutterSize); + /* Other half of the gutter is provided by margin-bottom on the last tile + of the section */ + margin-top: calc(var(--gutterSize) / 2); margin-left: var(--EventTile_bubble-margin-inline-start); font-size: $font-14px; diff --git a/res/css/views/rooms/_EventTile.pcss b/res/css/views/rooms/_EventTile.pcss index 55702c787bf..58e04bc17d7 100644 --- a/res/css/views/rooms/_EventTile.pcss +++ b/res/css/views/rooms/_EventTile.pcss @@ -462,6 +462,11 @@ $left-gutter: 64px; &.mx_EventTile_continuation { margin-top: 2px; } + &.mx_EventTile_lastInSection { + /* Other half of the gutter is provided by margin-top on the first + tile of the section */ + margin-bottom: calc(var(--gutterSize) / 2); + } } }