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

Align E2E icon and avatar of info tile in compact modern layout #8906

Closed
wants to merge 4 commits into from
Closed

Align E2E icon and avatar of info tile in compact modern layout #8906

wants to merge 4 commits into from

Conversation

luixxiul
Copy link
Contributor

@luixxiul luixxiul commented Jun 27, 2022

Fixes element-hq/element-web#22652

Before After
before after

The position of E2E icon on TimelineCard (styled with .mx_TimelineCard .mx_EventTile:not([data-layout="bubble"]) .mx_EventTile_line .mx_EventTile_e2eIcon) should be checked after removing :not() pseudo class which increases specificity.

The pseudo class is going to be removed with #8910.

type: defect

Signed-off-by: Suguru Hirahara luixxiul@users.noreply.github.com


Here's what your changelog entry will look like:

🐛 Bug Fixes

luixxiul added 2 commits June 24, 2022 18:11
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
@github-actions github-actions bot added Z-Community-PR Issue is solved by a community member's PR T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems labels Jun 27, 2022
@@ -1074,14 +1074,20 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
.mx_EventTile {
// Override :not([data-layout="bubble"])
&[data-layout=group] {
--MatrixChat_useCompactLayout-top-avatar: 2px;
--MatrixChat_useCompactLayout-top-e2eIcon: 3px;
--MatrixChat_useCompactLayout_line-spacing-block: 0px;
Copy link
Contributor Author

@luixxiul luixxiul Jun 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might look redundant but I think this should explicitly ensure that the same zero margin/padding is applied to e2eIcon, avatar, line, and reply.

@luixxiul luixxiul marked this pull request as ready for review June 27, 2022 16:37
@luixxiul luixxiul requested a review from a team as a code owner June 27, 2022 16:37
@luixxiul
Copy link
Contributor Author

This should work, while IMO it is generally not a great idea to align stuff with pixel from the viewpoint of i18n- Let's not forget the fact that the height of characters are very different among languages.

Copy link
Contributor

@kerryarchibald kerryarchibald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs analysis if this works properly in every case...

Can you please add screenshots of the 3 message layouts?

@luixxiul
Copy link
Contributor Author

What I mean is that it needs to be checked whether avatar with/without E2E icon properly align with info event text on both the main timeline and right panel (TimelineCard and ThreadView). The compact layout is available only for the modern layout, so there is just one type of message layout to be checked.

I'm checking them to create screenshots.

@luixxiul
Copy link
Contributor Author

Added screenshots with a comment.

@luixxiul luixxiul closed this Jul 2, 2022
@luixxiul luixxiul deleted the MatrixChat_useCompactLayout branch July 2, 2022 03:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some state events are not aligned in compact layout
2 participants