@@ -130,53 +130,70 @@ export default function FeedbackTab() {
130130 </ p >
131131 }
132132 >
133- { ( diag ) => (
134- < div class = "space-y-3 text-sm" >
135- < Show when = { diag ( ) . macosVersion } >
136- { ( ver ) => (
137- < div class = "space-y-1" >
138- < p class = "text-gray-11 font-medium" > Operating System</ p >
139- < p class = "text-gray-10 bg-gray-2 px-2 py-1.5 rounded font-mono text-xs" >
140- { ver ( ) . displayName }
141- </ p >
142- </ div >
143- ) }
144- </ Show >
145-
146- < div class = "space-y-1" >
147- < p class = "text-gray-11 font-medium" > Capture Support</ p >
148- < div class = "flex gap-2 flex-wrap" >
149- < span
150- class = { `px-2 py-1 rounded text-xs ${
151- diag ( ) . screenCaptureSupported
152- ? "bg-green-500/20 text-green-400"
153- : "bg-red-500/20 text-red-400"
154- } `}
155- >
156- Screen Capture:{ " " }
157- { diag ( ) . screenCaptureSupported
158- ? "Supported"
159- : "Not Supported" }
160- </ span >
161- </ div >
162- </ div >
133+ { ( diag ) => {
134+ const d = diag ( ) ;
135+ const osVersion =
136+ "macosVersion" in d
137+ ? d . macosVersion
138+ : "windowsVersion" in d
139+ ? d . windowsVersion
140+ : null ;
141+ const captureSupported =
142+ "screenCaptureSupported" in d
143+ ? d . screenCaptureSupported
144+ : "graphicsCaptureSupported" in d
145+ ? d . graphicsCaptureSupported
146+ : false ;
147+ return (
148+ < div class = "space-y-3 text-sm" >
149+ < Show when = { osVersion } >
150+ { ( ver ) => (
151+ < div class = "space-y-1" >
152+ < p class = "text-gray-11 font-medium" >
153+ Operating System
154+ </ p >
155+ < p class = "text-gray-10 bg-gray-2 px-2 py-1.5 rounded font-mono text-xs" >
156+ { ver ( ) . displayName }
157+ </ p >
158+ </ div >
159+ ) }
160+ </ Show >
163161
164- < Show when = { diag ( ) . availableEncoders . length > 0 } >
165162 < div class = "space-y-1" >
166- < p class = "text-gray-11 font-medium" > Available Encoders</ p >
167- < div class = "flex gap-1.5 flex-wrap" >
168- < For each = { diag ( ) . availableEncoders } >
169- { ( encoder ) => (
170- < span class = "px-2 py-1 bg-gray-2 rounded text-xs text-gray-10 font-mono" >
171- { encoder }
172- </ span >
173- ) }
174- </ For >
163+ < p class = "text-gray-11 font-medium" > Capture Support</ p >
164+ < div class = "flex gap-2 flex-wrap" >
165+ < span
166+ class = { `px-2 py-1 rounded text-xs ${
167+ captureSupported
168+ ? "bg-green-500/20 text-green-400"
169+ : "bg-red-500/20 text-red-400"
170+ } `}
171+ >
172+ Screen Capture:{ " " }
173+ { captureSupported ? "Supported" : "Not Supported" }
174+ </ span >
175175 </ div >
176176 </ div >
177- </ Show >
178- </ div >
179- ) }
177+
178+ < Show when = { d . availableEncoders . length > 0 } >
179+ < div class = "space-y-1" >
180+ < p class = "text-gray-11 font-medium" >
181+ Available Encoders
182+ </ p >
183+ < div class = "flex gap-1.5 flex-wrap" >
184+ < For each = { d . availableEncoders } >
185+ { ( encoder ) => (
186+ < span class = "px-2 py-1 bg-gray-2 rounded text-xs text-gray-10 font-mono" >
187+ { encoder }
188+ </ span >
189+ ) }
190+ </ For >
191+ </ div >
192+ </ div >
193+ </ Show >
194+ </ div >
195+ ) ;
196+ } }
180197 </ Show >
181198 </ div >
182199 </ div >
0 commit comments