From 33bcefb7101c1e76d537771978bc1b089cda213f Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Thu, 2 Nov 2023 13:54:39 +1100 Subject: [PATCH] fix broken ui on long messages --- Session/Media Viewing & Editing/MessageInfoView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Session/Media Viewing & Editing/MessageInfoView.swift b/Session/Media Viewing & Editing/MessageInfoView.swift index 510a954fa..c2f75b882 100644 --- a/Session/Media Viewing & Editing/MessageInfoView.swift +++ b/Session/Media Viewing & Editing/MessageInfoView.swift @@ -53,7 +53,7 @@ struct MessageInfoView: View { maxHeight: .infinity, alignment: .topLeading ) - .fixedSize() + .fixedSize(horizontal: false, vertical: true) .padding(.top, Values.smallSpacing) .padding(.bottom, Values.verySmallSpacing) .padding(.horizontal, Values.largeSpacing) @@ -555,7 +555,7 @@ struct MessageInfoView_Previews: PreviewProvider { receivedAtTimestampMs: SnodeAPI.currentOffsetTimestampMs(), authorId: "d4f1g54sdf5g1d5f4g65ds4564df65f4g65d54gdfsg", authorNameInternal: "Test", - body: "Test Message", + body: "Mauris sapien dui, sagittis et fringilla eget, tincidunt vel mauris. Mauris bibendum quis ipsum ac pulvinar. Integer semper elit vitae placerat efficitur. Quisque blandit scelerisque orci, a fringilla dui. In a sollicitudin tortor. Vivamus consequat sollicitudin felis, nec pretium dolor bibendum sit amet. Integer non congue risus, id imperdiet diam. Proin elementum enim at felis commodo semper. Pellentesque magna magna, laoreet nec hendrerit in, suscipit sit amet risus. Nulla et imperdiet massa. Donec commodo felis quis arcu dignissim lobortis. Praesent nec fringilla felis, ut pharetra sapien. Donec ac dignissim nisi, non lobortis justo. Nulla congue velit nec sodales bibendum. Nullam feugiat, mauris ac consequat posuere, eros sem dignissim nulla, ac convallis dolor sem rhoncus dolor. Cras ut luctus risus, quis viverra mauris.", expiresStartedAtMs: nil, expiresInSeconds: nil, state: .failed,