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

Fix various message bubble alignment issues #6785

Merged
merged 6 commits into from
Sep 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions res/css/views/rooms/_EventBubbleTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ limitations under the License.
}

.mx_EventTile[data-layout=bubble] {

position: relative;
margin-top: var(--gutterSize);
margin-left: 50px;
margin-left: 49px;
margin-right: 100px;

&.mx_EventTile_continuation {
Expand Down Expand Up @@ -77,7 +76,7 @@ limitations under the License.
max-width: 70%;
}

.mx_SenderProfile {
> .mx_SenderProfile {
position: relative;
top: -2px;
left: 2px;
Expand Down Expand Up @@ -113,8 +112,6 @@ limitations under the License.

.mx_ReplyTile .mx_SenderProfile {
display: block;
top: unset;
left: unset;
}

.mx_ReactionsRow {
Expand Down Expand Up @@ -287,16 +284,19 @@ limitations under the License.
.mx_EventTile_line,
.mx_EventTile_info {
min-width: 100%;
// Preserve alignment with left edge of text in bubbles
margin: 0;
}

.mx_EventTile_e2eIcon {
margin-left: 9px;
}

.mx_EventTile_line > a {
// Align timestamps with those of normal bubble tiles
right: auto;
top: -15px;
left: -68px;
top: -11px;
left: -95px;
}
}

Expand Down Expand Up @@ -326,11 +326,10 @@ limitations under the License.
}

.mx_EventTile_line {
margin: 0 5px;
margin: 0;
> a {
left: auto;
right: 0;
transform: translateX(calc(100% + 5px));
// Align timestamps with those of normal bubble tiles
left: -76px;
}
}

Expand All @@ -340,7 +339,8 @@ limitations under the License.
}

.mx_EventListSummary[data-expanded=false][data-layout=bubble] {
padding: 0 34px;
// Align with left edge of bubble tiles
padding: 0 49px;
}

/* events that do not require bubble layout */
Expand Down