Skip to content

Commit

Permalink
style: outgoing bg color for outgoing stickers
Browse files Browse the repository at this point in the history
Closes #4453.
The bug (if you can call it that) was introduced in f83ce46.
Similar commit: 8259aad.
  • Loading branch information
WofWca committed Jan 6, 2025
1 parent 8363e6c commit e813b08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Allow empty `To` field for self-sent messages.

## Fixed
- fix "incoming message background color" being used for quotes of outgoing sticker messages #4456

## [1.50.1] - 2024-12-18

Expand Down
7 changes: 6 additions & 1 deletion packages/frontend/scss/message/_message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@

.msg-container {
background-color: var(--messageIncomingBg);
--messageBg: var(--messageIncomingBg);

&,
.message-attachment-media {
Expand Down Expand Up @@ -213,6 +214,7 @@

.msg-container {
background-color: var(--messageOutgoingBg);
--messageBg: var(--messageOutgoingBg);

&,
.message-attachment-media {
Expand All @@ -231,7 +233,10 @@
}

.quote-background {
background: var(--messageIncomingBg);
// `.msg-container` background is transparent,
// so let's explicitly apply the color just for the quote.
background: var(--messageBg);

padding: 5px;
padding-left: 6px;
border-radius: 7px;
Expand Down

0 comments on commit e813b08

Please sign in to comment.