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

Commit

Permalink
Improve the visual balance of bubble layout (#9704)
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown authored Dec 3, 2022
1 parent 0358e03 commit 2d9fa81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion res/css/views/rooms/_EventBubbleTile.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
5 changes: 5 additions & 0 deletions res/css/views/rooms/_EventTile.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 2d9fa81

Please sign in to comment.