damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 992b0f2eba52e8376be29288437d4038932c3581
parent 9d91856ea3d301f588a9312de1d2b4362b1f2336
Author: kernelkind <kernelkind@gmail.com>
Date:   Tue, 30 Jan 2024 12:36:49 -0500

ui: fix load media formatting on small screens

On small screens, specifically the iPhone 12 Mini in this case, the
'Load Media' has a minimum width which is too high so it causes
formatting problems when viewing replies.

The minimum width of the frame was arbitrarily decreased from 300 to
200.

Changelog-Fixed: Fix load media formatting on small screens
Closes: https://github.com/damus-io/damus/issues/1944
Lightning-address: kernelkind@getalby.com
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/NoteContentView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift @@ -197,7 +197,7 @@ struct NoteContentView: View { } } .background(DamusColors.neutral1) - .frame(minWidth: 300, maxWidth: .infinity, alignment: .center) + .frame(minWidth: 200, maxWidth: .infinity, alignment: .center) .cornerRadius(8) .overlay( RoundedRectangle(cornerRadius: 8)