From 6d965a8fc39fa78b3ad539745a97fe85d5d0cd7d Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Tue, 13 Jun 2023 16:11:28 -0700 Subject: [PATCH] Fix squished device images --- Meshtastic/Views/Helpers/Node/NodeInfoView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Meshtastic/Views/Helpers/Node/NodeInfoView.swift b/Meshtastic/Views/Helpers/Node/NodeInfoView.swift index 8a8758df..528aa263 100644 --- a/Meshtastic/Views/Helpers/Node/NodeInfoView.swift +++ b/Meshtastic/Views/Helpers/Node/NodeInfoView.swift @@ -35,7 +35,7 @@ struct NodeInfoView: View { if node.user != nil { Image(hwModelString) .resizable() - .aspectRatio(contentMode: .fill) + .aspectRatio(contentMode: .fit) .frame(width: 100, height: 100) .cornerRadius(5) @@ -133,6 +133,7 @@ struct NodeInfoView: View { VStack { Image(node.user!.hwModel ?? "unset".localized) .resizable() + .aspectRatio(contentMode: .fit) .frame(width: 75, height: 75) .cornerRadius(5) Text(String(node.user!.hwModel ?? "unset".localized))