Skip to content

Commit 7138e6e

Browse files
authored
fix(devices): keep long diagnostics from hiding device controls (pingdotgg#19973)
1 parent 7a07553 commit 7138e6e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎apps/web/src/components/device/DevicePanel.tsx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ export function DevicePanel(props: {
157157
{hostReady && !activeDevice && state.hostStatusDetail ? (
158158
<div
159159
role="status"
160-
className="whitespace-pre-line border-b px-3 py-2 text-xs text-muted-foreground"
160+
aria-label="Device host diagnostics"
161+
tabIndex={0}
162+
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"
161163
>
162164
{state.hostStatusDetail}
163165
</div>
@@ -229,7 +231,10 @@ export function DevicePanel(props: {
229231
{grouped.length === 0 ? (
230232
<>
231233
<Smartphone className="size-6 opacity-60" />
232-
<p className="max-w-sm">
234+
<p
235+
className="max-h-32 w-full max-w-sm overflow-y-auto whitespace-pre-line break-words"
236+
tabIndex={state.hostStatus === "failed" ? 0 : undefined}
237+
>
233238
{state.hostStatus === "failed"
234239
? (state.hostStatusDetail ?? "The device hub failed to start.")
235240
: "No simulators or emulators were found on this environment."}

0 commit comments

Comments
 (0)