TypeScript
fix(devices): keep long diagnostics from hiding device controls (#19973)
Luís Miguel7138e6ef2a9f
diff --git a/apps/web/src/components/device/DevicePanel.tsx b/apps/web/src/components/device/DevicePanel.tsxindex 2d0c2127071..05668509ea3 100644--- a/apps/web/src/components/device/DevicePanel.tsx+++ b/apps/web/src/components/device/DevicePanel.tsx@@ -157,7 +157,9 @@ export function DevicePanel(props: {{hostReady && !activeDevice && state.hostStatusDetail ? (<divrole="status"- className="whitespace-pre-line border-b px-3 py-2 text-xs text-muted-foreground"+ aria-label="Device host diagnostics"+ tabIndex={0}+ className="max-h-32 shrink-0 overflow-y-auto whitespace-pre-line break-words border-b px-3 py-2 text-xs text-muted-foreground">{state.hostStatusDetail}</div>@@ -229,7 +231,10 @@ export function DevicePanel(props: {{grouped.length === 0 ? (<><Smartphone className="size-6 opacity-60" />- <p className="max-w-sm">+ <p+ className="max-h-32 w-full max-w-sm overflow-y-auto whitespace-pre-line break-words"+ tabIndex={state.hostStatus === "failed" ? 0 : undefined}+ >{state.hostStatus === "failed"? (state.hostStatusDetail ?? "The device hub failed to start."): "No simulators or emulators were found on this environment."}