File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ struct ContentView_Previews: PreviewProvider {
221
221
. environmentObject ( StorageInfoManager . shared)
222
222
. environmentObject ( MdmInfoManager . shared)
223
223
. environmentObject ( BatteryInfoManager . shared)
224
- . frame ( width: 1400 , height: 800 )
224
+ . frame ( width: 1500 , height: 900 )
225
225
}
226
226
}
227
227
Original file line number Diff line number Diff line change @@ -91,8 +91,10 @@ struct DeviceInfoSection: View {
91
91
if index < totalGroups - 1 {
92
92
Divider ( )
93
93
. background ( Color . white. opacity ( 0.2 ) )
94
+ . padding ( . vertical)
94
95
}
95
96
}
97
+ . frame ( maxWidth: . infinity) // Ensure parent always fills width
96
98
}
97
99
}
98
100
@@ -125,17 +127,19 @@ struct SectionHeader: View {
125
127
struct DeviceInfoRow : View {
126
128
let label : String
127
129
let value : String ?
128
-
130
+
129
131
var body : some View {
130
- HStack {
132
+ HStack ( alignment : . top ) {
131
133
Text ( label)
132
134
. font ( . system( size: 14 ) )
133
135
. bold ( )
134
- . frame ( width: 150 , alignment: . leading) // Set fixed width for labels
135
136
136
137
Spacer ( )
138
+
137
139
Text ( value ?? " N/A " )
138
140
. font ( . system( size: 14 ) )
141
+ . multilineTextAlignment ( . leading)
142
+ . lineLimit ( nil )
139
143
}
140
144
}
141
145
}
@@ -153,7 +157,7 @@ struct LastRestartRow: View {
153
157
Text ( label)
154
158
. font ( . system( size: 14 ) )
155
159
. bold ( )
156
- . frame ( width : 150 , alignment: . leading) // Fixed width for labels
160
+ . frame ( alignment: . leading)
157
161
158
162
Spacer ( )
159
163
HStack ( spacing: 5 ) {
You can’t perform that action at this time.
0 commit comments