From b8f169d0cd25b5cc63ddf649efb2515b8c4a41b4 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 24 Oct 2020 11:34:49 -0400 Subject: [PATCH] Fix broken layout on Compose screen when replying to certain posts Closes #115 --- Tusker/Screens/Compose/ComposeReplyView.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tusker/Screens/Compose/ComposeReplyView.swift b/Tusker/Screens/Compose/ComposeReplyView.swift index 81697a0f6d..92ac9d70f5 100644 --- a/Tusker/Screens/Compose/ComposeReplyView.swift +++ b/Tusker/Screens/Compose/ComposeReplyView.swift @@ -41,11 +41,10 @@ struct ComposeReplyView: View { ComposeReplyContentView(status: status) { (newHeight) in self.contentHeight = newHeight } - .frame(height: contentHeight) .offset(x: -4, y: -8) .padding(.bottom, -8) } - .frame(minHeight: 50 + 8) + .frame(height: max(50, contentHeight ?? 0) + 8) } .padding(.bottom, -8) }