Fix read avatars overflow from the right chat panel with a maximized widget on bubble message layout (#8470)
* Fix RR overflow on the right chat panel Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Align with RR outside of info tile Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use inset-inline property Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
@@ -539,8 +539,10 @@ limitations under the License.
|
||||
|
||||
.mx_ReadReceiptGroup {
|
||||
position: absolute;
|
||||
|
||||
// as close to right gutter without clipping as possible
|
||||
right: -78px;
|
||||
inset-inline-end: calc(-1 * var(--ReadReceiptGroup_EventBubbleTile-spacing-end));
|
||||
|
||||
// (EventTileLine.line-height - ReadReceiptGroup.height) / 2
|
||||
// this centers the ReadReceiptGroup if we’ve got a single line
|
||||
bottom: calc(($font-18px - 24px) / 2);
|
||||
@@ -691,15 +693,16 @@ limitations under the License.
|
||||
|
||||
.mx_MessageActionBar {
|
||||
inset-inline-start: initial; // Reset .mx_EventTile[data-layout="bubble"][data-self="false"] .mx_MessageActionBar
|
||||
right: 48px; // align with that of right-column bubbles
|
||||
inset-inline-end: 48px; // align with that of right-column bubbles
|
||||
}
|
||||
|
||||
.mx_ReadReceiptGroup {
|
||||
right: -18px; // match alignment to RRs of chat bubbles
|
||||
// match alignment to RRs of chat bubbles
|
||||
inset-inline-end: calc(-1 * var(--ReadReceiptGroup_EventBubbleTile-spacing-end) + 60px);
|
||||
}
|
||||
|
||||
&::before {
|
||||
right: 0; // match alignment of the hover background to that of chat bubbles
|
||||
inset-inline-end: 0; // match alignment of the hover background to that of chat bubbles
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,8 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
.mx_ReadReceiptGroup {
|
||||
--ReadReceiptGroup_EventBubbleTile-spacing-end: 78px;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
// This aligns the avatar with the last line of the
|
||||
|
||||
Reference in New Issue
Block a user