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

Commit

Permalink
Align media and reactions row on thread panel (#8312)
Browse files Browse the repository at this point in the history
* Align reactions row

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

* Nesting

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

* Include .mx_EventTile_mediaLine inside .mx_EventTile[data-layout=group]

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul authored Apr 14, 2022
1 parent 8eaae6b commit f97572f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
19 changes: 12 additions & 7 deletions res/css/views/right_panel/_TimelineCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,19 @@ limitations under the License.
margin-right: 0;
}

.mx_EventTile:not([data-layout="bubble"]) .mx_EventTile_line {
padding-left: 36px;
padding-right: 36px;
}
.mx_EventTile:not([data-layout="bubble"]) {
.mx_EventTile_line {
padding-left: 36px;
padding-right: 36px;
}

.mx_EventTile:not([data-layout="bubble"]) .mx_ReactionsRow {
padding-left: 36px;
padding-right: 36px;
.mx_ReactionsRow {
padding: 0;

// See margin setting of ReactionsRow on _EventTile.scss
margin-left: 36px;
margin-right: 8px;
}
}

.mx_EventTile:not([data-layout="bubble"]) .mx_ThreadInfo {
Expand Down
17 changes: 9 additions & 8 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1006,15 +1006,17 @@ $threadInfoLineHeight: calc(2 * $font-12px);
}

.mx_EventTile[data-layout=group] {
$spacing-start: 48px;
width: 100%;

.mx_EventTile_content,
.mx_HiddenBody,
.mx_RedactedBody,
.mx_UnknownBody,
.mx_MPollBody,
.mx_ReplyChain_wrapper {
margin-left: 48px;
.mx_ReplyChain_wrapper,
.mx_ReactionsRow {
margin-left: $spacing-start;
margin-right: 8px;

.mx_EventTile_content,
Expand All @@ -1025,11 +1027,6 @@ $threadInfoLineHeight: calc(2 * $font-12px);
}
}

.mx_ReactionsRow {
margin-left: 36px;
margin-right: 8px;
}

.mx_MessageTimestamp {
top: 2px !important;
width: auto;
Expand All @@ -1053,10 +1050,14 @@ $threadInfoLineHeight: calc(2 * $font-12px);
}
}
}

.mx_EventTile_mediaLine {
padding-inline-start: $spacing-start;
}
}

.mx_EventTile_mediaLine {
padding-left: 36px !important;
padding-left: 36px;
padding-right: 50px;

.mx_MImageBody {
Expand Down

0 comments on commit f97572f

Please sign in to comment.