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

Commit

Permalink
Merge pull request #6785 from robintown/message-bubble-misc
Browse files Browse the repository at this point in the history
Fix various message bubble alignment issues
  • Loading branch information
turt2live committed Sep 14, 2021
2 parents c3ad978 + 9b3da61 commit fdb004b
Showing 1 changed file with 12 additions and 12 deletions.
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;
font-size: $font-14px;

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

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

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

.mx_ReactionsRow {
Expand Down Expand Up @@ -289,16 +286,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 @@ -328,11 +328,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 @@ -342,7 +341,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

0 comments on commit fdb004b

Please sign in to comment.