This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 833
Move mx_EventTile_info out of mx_EventTile:not([data-layout=bubble]) #8994
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
532769a
Move mx_EventTile_info .mx_EventTile_line from mx_EventTile:not([data…
luixxiul be78289
Move style rules for avatar and E2E icon of mx_EventTile_info .mx_Eve…
luixxiul bb3dcda
Use variables
luixxiul b96ff7b
Move mx_EventTile_info out of mx_EventTile:not([data-layout=bubble]) …
luixxiul cc281c8
Apply the style rule for mx_MessageTimestamp on info event tile line …
luixxiul ecca514
Apply zero padding-top to modern/group layout only (IRC layout has ze…
luixxiul e61fe4c
Apply avatar position settings to modern/group layout only
luixxiul c971486
Maintain the style block for avatar on info event tile in IRC layout …
luixxiul 902a283
Remove obsolete style block
luixxiul 78dd03e
Merge branch 'develop' into positivism
luixxiul 6ae8019
Merge branch 'develop' into positivism
luixxiul 3a412fa
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
luixxiul 997756e
Remove inline padding setting from mx_EventTile_line
luixxiul 4efc96f
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
luixxiul 6c63ffc
Merge branch 'develop' into positivism
luixxiul d8dde64
Use a correct variable
luixxiul b6f8282
Fix misalignment of avatars and textual events on IRC layout
luixxiul 90f1f3c
Align avatars and hidden events on IRC layout
luixxiul d394290
Merge branch 'develop' into positivism
luixxiul 3c50b5f
Merge branch 'develop' into positivism
luixxiul e6fba07
Merge remote-tracking branch 'upstream/develop' into positivism
luixxiul 2185870
Merge branch 'develop' into positivism
luixxiul 946bc87
Merge branch 'develop' into positivism
luixxiul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,6 +207,12 @@ $left-gutter: 64px; | |
} | ||
} | ||
|
||
&.mx_EventTile_info { | ||
.mx_EventTile_e2eIcon { | ||
top: 0; | ||
} | ||
} | ||
|
||
&.mx_EventTile_continuation .mx_EventTile_line { | ||
clear: both; | ||
} | ||
|
@@ -267,6 +273,15 @@ $left-gutter: 64px; | |
padding-inline-start: calc($selected-message-border-width + var(--EditMessageComposer-padding-inline)); | ||
} | ||
} | ||
|
||
&.mx_EventTile_info { | ||
.mx_EventTile_avatar { | ||
left: var(--EventTile_irc_line_info-inset-inline-start); | ||
top: 0; | ||
margin-right: var(--right-padding); | ||
padding-block: var(--EventTile_irc_line-padding-block); | ||
} | ||
} | ||
} | ||
|
||
&[data-layout=group] { | ||
|
@@ -338,8 +353,31 @@ $left-gutter: 64px; | |
padding-top: 0px !important; | ||
} | ||
|
||
&.mx_EventTile_info .mx_EventTile_line { | ||
padding-left: calc($left-gutter + 20px); // override padding-left $left-gutter | ||
&.mx_EventTile_info { | ||
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. For modern layout |
||
$spacing-block-start: 3px; | ||
$spacing-block-end: 2px; | ||
|
||
padding-top: 0; | ||
|
||
.mx_EventTile_avatar, | ||
.mx_EventTile_e2eIcon { | ||
margin: $spacing-block-start 0 $spacing-block-end; | ||
} | ||
|
||
.mx_EventTile_avatar { | ||
top: initial; | ||
inset-inline-start: $left-gutter; | ||
height: 14px; | ||
} | ||
|
||
.mx_EventTile_line { | ||
padding-block: $spacing-block-start $spacing-block-end; | ||
padding-inline-start: calc(var(--EventTile_group_line-spacing-inline-start) + 20px); // 20px: avatar area | ||
|
||
.mx_MessageTimestamp { | ||
top: 0; | ||
} | ||
} | ||
} | ||
|
||
&:hover { | ||
|
@@ -370,33 +408,6 @@ $left-gutter: 64px; | |
font-size: $font-14px; | ||
position: relative; | ||
|
||
&.mx_EventTile_info { | ||
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. For both IRC and modern layouts |
||
padding-top: 0; | ||
|
||
.mx_EventTile_avatar, | ||
.mx_EventTile_e2eIcon { | ||
margin: 3px 0 2px; // Align with mx_EventTile_line | ||
} | ||
|
||
.mx_EventTile_e2eIcon { | ||
top: 0; | ||
} | ||
|
||
.mx_EventTile_avatar { | ||
top: initial; | ||
inset-inline-start: $left-gutter; | ||
height: 14px; | ||
} | ||
|
||
.mx_EventTile_line { | ||
padding-block: 3px 2px; // Align with mx_EventTile_avatar and mx_EventTile_e2eIcon | ||
|
||
.mx_MessageTimestamp { | ||
top: 0; | ||
} | ||
} | ||
} | ||
|
||
/* this is used for the tile for the event which is selected via the URL. | ||
* TODO: ultimately we probably want some transition on here. | ||
*/ | ||
|
@@ -425,10 +436,6 @@ $left-gutter: 64px; | |
} | ||
|
||
&[data-layout=irc] { | ||
.mx_EventTile_info .mx_EventTile_line { | ||
padding-left: 0; // Override .mx_EventTile:not([data-layout="bubble"]).mx_EventTile_info .mx_EventTile_line | ||
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 overriding |
||
} | ||
|
||
.mx_EventTile_line .mx_RedactedBody { | ||
padding-left: 24px; // 25px - 1px | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For IRC layout