Fix timestamp's position on the chat panel with a maximized widget in IRC layout (#8464)

Fix avatar's position on the chat panel with a maximized widget in IRC layout
Fix timestamp's position on Message Edits history modal window

Also:
- Align DisambiguatedProfile with reactions row and thread summary with a variable
- Add width property as default
- Use the global variable on _IRCLayout.scss

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
Suguru Hirahara 2022-05-07 03:07:51 +00:00 committed by GitHub
parent 34471ba855
commit c86040b77a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 11 deletions

View file

@ -52,31 +52,39 @@ limitations under the License.
}
.mx_EventTile:not([data-layout="bubble"]) {
$left-gutter: 36px;
.mx_EventTile_line {
padding-left: 36px;
padding-right: 36px;
padding-inline-start: $left-gutter;
padding-inline-end: 36px;
}
.mx_DisambiguatedProfile,
.mx_ReactionsRow,
.mx_ThreadSummary {
margin-inline-start: $left-gutter;
}
.mx_ReactionsRow {
padding: 0;
// See margin setting of ReactionsRow on _EventTile.scss
margin-left: 36px;
margin-right: 8px;
}
.mx_ThreadSummary {
margin-left: 36px;
margin-right: 0;
max-width: min(calc(100% - 36px), 600px);
}
.mx_EventTile_avatar {
position: absolute; // for IRC layout
top: 12px;
left: -3px;
}
.mx_MessageTimestamp {
position: absolute; // for modern layout and IRC layout
right: -4px;
left: auto;
}
@ -87,7 +95,7 @@ limitations under the License.
&.mx_EventTile_info {
.mx_EventTile_line {
padding-left: 36px;
padding-left: $left-gutter;
}
.mx_EventTile_avatar {