Skip to content

Commit

Permalink
style: add CSS transition for adding reaction
Browse files Browse the repository at this point in the history
This doesn't add width transition for narrow messages though.
  • Loading branch information
WofWca committed Apr 8, 2024
1 parent 702a9e3 commit 4845928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 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 @@
- Update translations (2024-04-04) #3746
- minor improvements to "add second device" dialog #3748
- Remove deprecated translations #3756
- reactions: add message height animation #3752

### Fixed
- fix chat audit dialog was going out of viewport on smaller screens #3736
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/components/message/styles.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
$reaction-transition-duration: 100ms;

.message {
&.withReactions {
margin-bottom: 10px;
}
transition: margin-bottom ease-out $reaction-transition-duration;
}

.messageFooter {
Expand All @@ -17,6 +20,7 @@
right: 0;
}

transition: margin-bottom ease-out $reaction-transition-duration;
&.withReactionsNoText {
margin-bottom: 10px;
}
Expand Down

0 comments on commit 4845928

Please sign in to comment.