Fix reaction rendering in modern display mode

This commit is contained in:
FIGBERT 2023-04-17 11:50:31 -07:00
parent 3b26a8fbd1
commit 04ceba153f
No known key found for this signature in database
GPG key ID: 67F1598D607A844B

View file

@ -316,12 +316,12 @@ func (msg *UIMessage) DrawReactions(screen mauview.Screen, modernHeader bool) {
return return
} }
width, height := screen.Size()
diff := 1 diff := 1
if modernHeader { if modernHeader && height == msg.Height(modernHeader) {
diff = 2 diff = 2
} }
width, height := screen.Size()
screen = mauview.NewProxyScreen(screen, 0, height-diff, width, 1) screen = mauview.NewProxyScreen(screen, 0, height-diff, width, 1)
x := 0 x := 0