Skip to content

Fix mobile portrait rendering in execution history dialogs - #367

Merged
mbakgun merged 1 commit into
mainfrom
opencode/fix-history-dialog-mobile-layout
Jul 19, 2026
Merged

Fix mobile portrait rendering in execution history dialogs#367
mbakgun merged 1 commit into
mainfrom
opencode/fix-history-dialog-mobile-layout

Conversation

@heym-coder

@heym-coder heym-coder commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

All changes applied and verified. Here's a summary of what was fixed:

Dialog.vue (base component):

  • Reduced padding on mobile (p-4 vs p-6), responsive padding with sm: and md: breakpoints
  • Tighter header spacing: pb-3 sm:pb-4 mb-3 sm:mb-5
  • Title scales from text-sm on mobile to text-base on tablet to text-lg on desktop; now uses line-clamp-1 for better truncation
  • Subtitle uses leading-snug on mobile instead of cramped leading-none
  • Tighter gaps between header elements on mobile

ExecutionHistoryDialog.vue (single workflow):

  • Two-column layout becomes stacked (flex-col sm:flex-row) on mobile
  • Left panel constrained to max-h-[30vh] on mobile with border-b divider (switches to sm:border-r on desktop)
  • Left panel width: w-full sm:w-52 md:w-64 for proportional sizing
  • Overall height: h-[75vh] sm:h-[60vh] — taller on mobile since panels stack
  • Button text hidden on mobile where clutter-prone (Clear history button: hidden sm:inline)
  • Tighter gap values across top bar, search, and action buttons
  • Inputs/Outputs/Logs header rows use gap-2 for proper wrapping on narrow screens

ExecutionHistoryAllDialog.vue (all history):

  • Consistent responsive spacing throughout (space-y-3 sm:space-y-4, gap-2 sm:gap-3)
  • Clear All button text hidden on mobile
  • Running execution cards stack vertically on mobile (flex-col sm:flex-row)
  • Action button text hidden on mobile (hidden sm:inline)
  • Detail section headers use gap-2 with flex-wrap for narrow viewports

Screenshots

pr-367-history-dialog-mobile-portrait.png

All changes applied and verified. Here's a summary of what was fixed:

**Dialog.vue** (base component):
- Reduced padding on mobile (`p-4` vs `p-6`), responsive padding with `sm:` and `md:` breakpoints
- Tighter header spacing: `pb-3 sm:pb-4 mb-3 sm:mb-5`
- Title scales from `text-sm` on mobile to `text-base` on tablet to `text-lg` on desktop; now uses `line-clamp-1` for better truncation
- Subtitle uses `leading-snug` on mobile instead of cramped `leading-none`
- Tighter gaps between header elements on mobile

**ExecutionHistoryDialog.vue** (single workflow):
- Two-column layout becomes stacked (`flex-col sm:flex-row`) on mobile
- Left panel constrained to `max-h-[30vh]` on mobile with `border-b` divider (switches to `sm:border-r` on desktop)
- Left panel width: `w-full sm:w-52 md:w-64` for proportional sizing
- Overall height: `h-[75vh] sm:h-[60vh]` — taller on mobile since panels stack
- Button text hidden on mobile where clutter-prone (Clear history button: `hidden sm:inline`)
- Tighter gap values across top bar, search, and action buttons
- Inputs/Outputs/Logs header rows use `gap-2` for proper wrapping on narrow screens

**ExecutionHistoryAllDialog.vue** (all history):
- Consistent responsive spacing throughout (`space-y-3 sm:space-y-4`, `gap-2 sm:gap-3`)
- Clear All button text hidden on mobile
- Running execution cards stack vertically on mobile (`flex-col sm:flex-row`)
- Action button text hidden on mobile (`hidden sm:inline`)
- Detail section headers use `gap-2` with `flex-wrap` for narrow viewports
@mbakgun
mbakgun merged commit 03bd13d into main Jul 19, 2026
2 checks passed
@mbakgun
mbakgun deleted the opencode/fix-history-dialog-mobile-layout branch July 19, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants