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

Fix: Bubble layout design is broken #11763

Merged
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
37 changes: 24 additions & 13 deletions res/css/views/rooms/_EventBubbleTile.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,34 @@ limitations under the License.
margin-right: 0;
}

.mx_EventTile_avatar {
line-height: 0;
border: 4px solid $background;
border-radius: 50%;
position: absolute;
top: 6px;
z-index: 9;
img {
box-shadow: 0 0 0 3px $background;
border-radius: 50%;
}
}

&.mx_EventTile_highlight {
.mx_EventTile_avatar {
border-color: $event-highlight-bg-color;
}
&::before {
background-color: $event-highlight-bg-color;
}
}

&:hover {
.mx_EventTile_avatar {
border-color: $eventbubble-bg-hover;
}
}

/* For replies */
.mx_EventTile {
padding-top: 0;
Expand Down Expand Up @@ -177,7 +199,7 @@ limitations under the License.
}

.mx_EventTile_avatar {
left: -34px;
left: -36px;
}

.mx_MessageActionBar {
Expand Down Expand Up @@ -241,7 +263,7 @@ limitations under the License.

.mx_EventTile_avatar {
top: -19px; /* height of the sender block */
right: -35px;
right: -38px;
}

.mx_MediaBody {
Expand Down Expand Up @@ -401,17 +423,6 @@ limitations under the License.
}
}

.mx_EventTile_avatar {
position: absolute;
top: 0;
line-height: 1;
z-index: 9;
img {
box-shadow: 0 0 0 3px $background;
border-radius: 50%;
}
}

&.mx_EventTile_noSender {
.mx_EventTile_avatar {
top: -19px;
Expand Down