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

Commit ef33183

Browse files
committed
Vertical: spacing around 1px horizontal line
Signed-off-by: Suguru Hirahara <[email protected]>
1 parent a413e3a commit ef33183

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

res/css/views/rooms/_EventTile.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,9 @@ $eventTileZIndex: 10;
731731
--leftOffset: 48px;
732732
$borderRadius: 8px;
733733
$padding: $spacing-8;
734+
$hrHeight: 1px;
734735

735-
margin: var(--topOffset) 0;
736+
margin: calc(var(--topOffset) + $hrHeight) 0 var(--topOffset); // include the height of horizontal line
736737
padding: $padding $spacing-24 $padding $padding;
737738
border-radius: $borderRadius;
738739

@@ -751,8 +752,8 @@ $eventTileZIndex: 10;
751752
position: absolute;
752753
left: calc(var(--leftOffset) + $padding);
753754
right: $spacing-24; // 24px: 32px - 8px (right padding)
754-
height: 1px;
755-
bottom: calc(-1 * var(--topOffset));
755+
height: $hrHeight;
756+
bottom: calc(-1 * var(--topOffset) - $hrHeight); // exclude the height of horizontal line
756757
background-color: $quinary-content;
757758
}
758759

0 commit comments

Comments
 (0)