Skip to content

Commit

Permalink
GUI: Fix rendering of long filenames in More Details (northpolesec#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellhancox authored Nov 19, 2024
1 parent 847e84d commit ebd14bc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/gui/SNTBinaryMessageWindowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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))
}
}
Expand Down

0 comments on commit ebd14bc

Please sign in to comment.