Skip to content

Commit 2a6a80d

Browse files
committed
Increase padding
1 parent 914b509 commit 2a6a80d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

SupportCompanion/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ struct ContentView_Previews: PreviewProvider {
221221
.environmentObject(StorageInfoManager.shared)
222222
.environmentObject(MdmInfoManager.shared)
223223
.environmentObject(BatteryInfoManager.shared)
224-
.frame(width: 1400, height: 800)
224+
.frame(width: 1500, height: 900)
225225
}
226226
}
227227

SupportCompanion/Views/Cards/DeviceInformationCard.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ struct DeviceInfoSection: View {
9191
if index < totalGroups - 1 {
9292
Divider()
9393
.background(Color.white.opacity(0.2))
94+
.padding(.vertical)
9495
}
9596
}
97+
.frame(maxWidth: .infinity) // Ensure parent always fills width
9698
}
9799
}
98100

@@ -125,17 +127,19 @@ struct SectionHeader: View {
125127
struct DeviceInfoRow: View {
126128
let label: String
127129
let value: String?
128-
130+
129131
var body: some View {
130-
HStack {
132+
HStack(alignment: .top) {
131133
Text(label)
132134
.font(.system(size: 14))
133135
.bold()
134-
.frame(width: 150, alignment: .leading) // Set fixed width for labels
135136

136137
Spacer()
138+
137139
Text(value ?? "N/A")
138140
.font(.system(size: 14))
141+
.multilineTextAlignment(.leading)
142+
.lineLimit(nil)
139143
}
140144
}
141145
}
@@ -153,7 +157,7 @@ struct LastRestartRow: View {
153157
Text(label)
154158
.font(.system(size: 14))
155159
.bold()
156-
.frame(width: 150, alignment: .leading) // Fixed width for labels
160+
.frame(alignment: .leading)
157161

158162
Spacer()
159163
HStack(spacing: 5) {

0 commit comments

Comments
 (0)