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

Commit

Permalink
Fix position of message action bar on the info tile on TimelineCard i…
Browse files Browse the repository at this point in the history
…n message bubble layout (#8865)
  • Loading branch information
luixxiul authored Jun 18, 2022
1 parent e8f56c2 commit edf071a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion res/css/views/right_panel/_BaseCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ limitations under the License.
*/

.mx_BaseCard {
--BaseCard_padding-inline: $spacing-8;
--BaseCard_EventTile_line-padding-block: 2px;
--BaseCard_EventTile-spacing-inline: 36px; // TODO: Use a spacing variable
--BaseCard_header-button-size: 24px;

padding: 0 $spacing-8;
padding: 0 var(--BaseCard_padding-inline);
overflow: hidden;
display: flex;
flex-direction: column;
Expand Down
4 changes: 4 additions & 0 deletions res/css/views/right_panel/_TimelineCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ limitations under the License.
z-index: auto; // enable background color on hover
}

&.mx_EventTile_info .mx_MessageActionBar {
inset-inline-end: calc($container-gap-width + var(--BaseCard_padding-inline) + 1px); // 1px: border width
}

.mx_ReactionsRow {
position: relative; // display on hover
}
Expand Down

0 comments on commit edf071a

Please sign in to comment.