-
-
Notifications
You must be signed in to change notification settings - Fork 831
Align info EventTile and normal EventTile on IRC layout #10197
Changes from all commits
311440c
11e37fa
323ddd3
31ca16e
6d289b8
34d1ad6
5a8d1fa
ce32673
d734ae5
ab00c5f
4ec04d5
0041c01
6b60dfc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -270,7 +270,11 @@ $left-gutter: 64px; | |
} | ||
|
||
&[data-layout="irc"] { | ||
--EventTile_irc_line_info-margin-inline-start: calc(var(--name-width) + 10px + var(--icon-width)); | ||
/* add --right-padding value of MessageTimestamp only */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because |
||
/* stylelint-disable-next-line declaration-colon-space-after */ | ||
--EventTile_irc_line_info-margin-inline-start: calc( | ||
var(--name-width) + var(--icon-width) + 1 * var(--right-padding) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
); | ||
|
||
.mx_EventTile_msgOption { | ||
.mx_ReadReceiptGroup { | ||
|
@@ -483,20 +487,12 @@ $left-gutter: 64px; | |
} | ||
|
||
&[data-layout="irc"] { | ||
.mx_EventTile_line .mx_RedactedBody { | ||
padding-left: 24px; /* 25px - 1px */ | ||
|
||
&::before { | ||
left: var(--right-padding); | ||
} | ||
} | ||
Comment on lines
-486
to
-492
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How come this is no longer required? I follow the rest of the changes but can't quite see how this can just be removed, perhaps I'm missing something. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch, thanks. I'm checking why this was removed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing it cancels 5px adjustment for redacted messages with trash bin icons and aligns the lines with others. First, this commit which removes padding-left lets the original value of Second, this commit which removes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the detective work and the explanation |
||
|
||
/* Apply only collapsed events block */ | ||
> .mx_EventTile_line { | ||
/* 15 px of padding */ | ||
/* add --right-padding value of MessageTimestamp and avatar only */ | ||
/* stylelint-disable-next-line declaration-colon-space-after */ | ||
padding-left: calc( | ||
var(--name-width) + var(--icon-width) + $MessageTimestamp_width + 3 * var(--right-padding) | ||
var(--name-width) + var(--icon-width) + $MessageTimestamp_width + 2 * var(--right-padding) | ||
); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should hide timestamps of not only an info event line but also an emote (and a normal event line for messages) for https://percy.io/dfde73bd/matrix-react-sdk/builds/25434742/changed/1418297380?browser=edge&browser_ids=18%2C33%2C34%2C35&subcategories=approved&viewLayout=overlay&viewMode=new&width=1920&widths=400%2C800%2C1024%2C1920.