Skip to content

Commit 9303fe0

Browse files
Kasper Jungeclaude
authored andcommitted
fix: show run controls (pause/stop) on mobile instead of hiding them
The previous CSS hid all .btn-sm elements at ≤600px, which made run control buttons (Pause, Resume, Stop) completely inaccessible on mobile. Users could not pause or stop a running agent on their phone. Now the controls render as compact icon-only buttons on mobile, the stats bar (duplicated in RunOverview) is hidden to free space, and the Stop button gets an SVG icon so it works in icon-only mode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a3db920 commit 9303fe0

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

src/ralphify/ui/static/dashboard.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,28 @@ body {
26032603
display: none;
26042604
}
26052605

2606-
.btn-sm {
2606+
.controls-stats {
2607+
display: none;
2608+
}
2609+
2610+
/* Icon-only run control buttons on mobile */
2611+
.controls-bar .btn-sm {
2612+
font-size: 0;
2613+
padding: 6px 8px;
2614+
gap: 0;
2615+
min-width: 32px;
2616+
min-height: 32px;
2617+
justify-content: center;
2618+
align-items: center;
2619+
}
2620+
2621+
.controls-bar .btn-sm svg {
2622+
width: 14px;
2623+
height: 14px;
2624+
}
2625+
2626+
/* Hide run-again button in history cards (card itself is clickable) */
2627+
.history-run-again-btn {
26072628
display: none;
26082629
}
26092630

src/ralphify/ui/static/dashboard.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,12 @@ function RunControls({ run }) {
531531
</button>
532532
`}
533533
${isActive && html`
534-
<button class="btn btn-sm btn-danger" onClick=${() => stopRun(run.run_id)}>Stop</button>
534+
<button class="btn btn-sm btn-danger" onClick=${() => stopRun(run.run_id)}>
535+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
536+
<rect x="4" y="4" width="16" height="16" rx="2"/>
537+
</svg>
538+
Stop
539+
</button>
535540
`}
536541
${isFinished && html`
537542
<button class="btn btn-sm btn-primary" onClick=${() => {

0 commit comments

Comments
 (0)