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
Stop using mx_GroupLayout for styling #8711
Merged
Merged
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1788a7b
Stop using mx_GroupLayout as the top level declaration for styling
luixxiul c7d2987
Move a variable inside a block on _GroupLayout.scss
luixxiul 802f1d3
Move 'mx_EventTile[data-layout=group]' block from _GroupLayout.scss t…
luixxiul e59031b
Changes related to variables
luixxiul d37d9c2
Make cascading work for inline start margin of DisambiguatedProfile
luixxiul d13b67e
Merge the line-height declarations
luixxiul 130727c
Remove a variable as it is used only once
luixxiul b0547f1
Extract declarations of .mx_MessageActionBar from mx_GroupLayout
luixxiul 7e6f645
Move mx_GroupLayout block from _ThreadPanel.scss to _EventTile.scss
luixxiul ba52aab
Merge declarations in 'mx_EventTile[data-shape=ThreadsList]'
luixxiul 5bf689d
Merge branch 'develop' into GroupLayout
luixxiul fbb379f
yarn rethemendex
luixxiul a5bc288
Set zero to inline end margin (right margin) on IRC layout
luixxiul b98799b
Merge branch 'develop' into GroupLayout
luixxiul 210eed6
Merge branch 'develop' into GroupLayout
luixxiul 3153d67
Merge branch 'develop' into GroupLayout
luixxiul e5873b7
Merge branch 'develop' of https://github.com/matrix-org/matrix-react-…
luixxiul cf50dd1
Use a shortcut
luixxiul a30564c
Merge branch 'develop' into GroupLayout
luixxiul bbd5127
Merge branch 'develop' into GroupLayout
luixxiul 3a6fbc8
Merge branch 'develop' into GroupLayout
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
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 |
---|---|---|
|
@@ -66,8 +66,25 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss | |
} | ||
|
||
&[data-layout=group] { | ||
.mx_EventTile_line { | ||
line-height: var(--GroupLayout-EventTile-line-height); | ||
> .mx_DisambiguatedProfile { | ||
line-height: $font-20px; | ||
margin-left: $left-gutter; | ||
} | ||
|
||
> .mx_EventTile_avatar { | ||
position: absolute; | ||
z-index: 9; | ||
} | ||
|
||
.mx_MessageTimestamp { | ||
position: absolute; // for modern layout | ||
} | ||
|
||
.mx_EventTile_line, | ||
.mx_EventTile_reply { | ||
padding-top: 1px; | ||
padding-bottom: 3px; | ||
line-height: $font-22px; | ||
} | ||
} | ||
} | ||
|
@@ -128,7 +145,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss | |
display: inline-block; | ||
padding-bottom: 0px; | ||
padding-top: 0px; | ||
margin: 0px; | ||
max-width: calc(100% - $left-gutter); | ||
} | ||
|
||
|
@@ -789,7 +805,7 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss | |
} | ||
|
||
.mx_DisambiguatedProfile { | ||
margin-right: $spacing-12; | ||
margin-inline: 0 $spacing-12; | ||
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. |
||
display: inline-flex; | ||
flex: 1; | ||
|
||
|
@@ -813,6 +829,7 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss | |
.mx_EventTile_line { | ||
width: 100%; | ||
box-sizing: border-box; | ||
padding-bottom: 0; | ||
|
||
.mx_ThreadPanel_replies { | ||
margin-top: $spacing-8; | ||
|
@@ -835,6 +852,7 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss | |
.mx_MessageTimestamp { | ||
max-width: 80px; | ||
width: auto; | ||
position: initial; | ||
} | ||
} | ||
|
||
|
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
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.