Skip to content

Commit

Permalink
Merge pull request #57 from arrshad/fix-sticker-reply-styles
Browse files Browse the repository at this point in the history
Change reply rectangle height and color for sticker messages
  • Loading branch information
LyoSU authored Aug 3, 2024
2 parents b4d4139 + 7668a0a commit a73cdfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/quote-generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ class QuoteGenerate {

let rect
if (mediaType === 'sticker' && (name || replyName)) {
rectHeight -= mediaHeight + indent * 2
rectHeight = (replyName.height + replyText.height * 0.5) + indent * 2
backgroundColorOne = backgroundColorTwo = 'rgba(0, 0, 0, 0.5)'
}

if (mediaType !== 'sticker' || name || replyName) {
Expand Down

0 comments on commit a73cdfd

Please sign in to comment.