From ebd14bc119f1eb616439c1e39b1a93313b2562f7 Mon Sep 17 00:00:00 2001 From: Russell Hancox Date: Tue, 19 Nov 2024 14:50:47 -0500 Subject: [PATCH] GUI: Fix rendering of long filenames in More Details (#145) image Fixes #144 --- Source/gui/SNTBinaryMessageWindowView.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/gui/SNTBinaryMessageWindowView.swift b/Source/gui/SNTBinaryMessageWindowView.swift index 7800e83f..495e6123 100644 --- a/Source/gui/SNTBinaryMessageWindowView.swift +++ b/Source/gui/SNTBinaryMessageWindowView.swift @@ -94,14 +94,11 @@ struct MoreDetailsView: View { Spacer() } .frame(minWidth: MAX_OUTER_VIEW_WIDTH - 60) - .fixedSize() } var body: some View { HStack(spacing: 20.0) { VStack(spacing: 20.0) { - Spacer() - addLabel { Text("Path").bold().font(Font.system(size: 12.0)) Text(e?.filePath ?? "unknown").textSelection(.enabled) @@ -178,7 +175,7 @@ struct MoreDetailsView: View { } Spacer() - }.frame(maxWidth: MAX_OUTER_VIEW_WIDTH - 20).fixedSize() + }.frame(maxWidth: MAX_OUTER_VIEW_WIDTH - 20).padding(20.0) }.frame(width: MAX_OUTER_VIEW_WIDTH - 20).fixedSize().background(Color.gray.opacity(0.2)) } }