Skip to content

Commit

Permalink
style: fix reactions to stickers overlapping
Browse files Browse the repository at this point in the history
Apparently this `margin-bottom: -7px` is a residue
from copy pasting it from `.metadata` for regular text messages.
We have `marin: 0` set for image-only messages,
so we should set `margin: 0` for sticker messages as well.

Similar MR: #4237.
  • Loading branch information
WofWca committed Dec 22, 2024
1 parent 28f6542 commit 71633d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

## Fixed
- fix stickers being smaller than they're supposed to #4432
- fix reactions to sticker messages overlapping with next message #4433

## [1.50.1] - 2024-12-18

Expand Down
7 changes: 5 additions & 2 deletions packages/frontend/scss/message/_message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,18 @@
.message-attachment-media {
background-color: transparent;
& > .attachment-content {
margin-bottom: 20px;
// Make space for the footer, which is `position: absolute;`.
// However, this does not account for the case
// where the footer text wraps.
margin-bottom: 26px;

cursor: default;
}
}

.metadata {
float: right;
padding: 4px 8px 1px 8px;
margin-bottom: -7px;
background-color: #01010159;
border-radius: 4px;
color: black;
Expand Down

0 comments on commit 71633d3

Please sign in to comment.