From 61a9a6cfc2164c79477e80ba221024c2d2ae01b0 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Mon, 29 Dec 2025 19:43:36 -0800 Subject: [PATCH] Smaller firmware download and install buttons so they look decent on a phone --- Meshtastic/Views/Settings/Firmware/Firmware.swift | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Meshtastic/Views/Settings/Firmware/Firmware.swift b/Meshtastic/Views/Settings/Firmware/Firmware.swift index 59d16779..2fa306f8 100644 --- a/Meshtastic/Views/Settings/Firmware/Firmware.swift +++ b/Meshtastic/Views/Settings/Firmware/Firmware.swift @@ -240,9 +240,9 @@ struct FirmwareTagView: View { Text(text) .foregroundStyle(color) .padding(.horizontal, 4.0) - .padding(.vertical, 2.0) - .font(.footnote) - .background(RoundedRectangle(cornerRadius: 4.0).stroke(color, lineWidth: 1.5)) + .padding(.vertical, 1.0) + .font(.caption2) + .background(RoundedRectangle(cornerRadius: 4.0).stroke(color, lineWidth: 1.2)) } } @@ -267,6 +267,8 @@ private struct FirmwareRow: View { } Text("\(firmwareFile.versionId)") + .font(.caption2) + .foregroundColor(.secondary) switch firmwareFile.releaseType { case .stable: @@ -296,6 +298,7 @@ private struct FirmwareRow: View { } label: { HStack(alignment: .firstTextBaseline, spacing: 2.0) { Text("Install") + .font(UIDevice.current.userInterfaceIdiom == .phone ? .caption : .body) self.installIcon } } @@ -310,6 +313,7 @@ private struct FirmwareRow: View { } } label: { Text("Download") + .font(UIDevice.current.userInterfaceIdiom == .phone ? .caption : .body) } .buttonStyle(.bordered) .buttonBorderShape(.capsule)