From c459ffe1ad77bc4ff3bb76857d01243fc4637fbc Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Wed, 22 Oct 2025 19:39:32 +0100 Subject: [PATCH] Don't hide attempt header on smaller screens (Vibe Kanban) (#1081) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Done! The attempt header now displays on small screens. The fix wraps the mobile attempt panel with the same header structure used on desktop—a sticky header with proper z-index and styling. All type checks pass. * Cleanup script changes for task attempt 82b32560-3a3b-401f-bd84-40fc7f6b53ba * Done! The preview and diff toggle buttons (and divider) are now hidden on mobile screens. The header will only show the actions dropdown and close button on small screens. --- frontend/src/components/layout/TasksLayout.tsx | 9 +++++++-- frontend/src/components/panels/AttemptHeaderActions.tsx | 6 ++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/layout/TasksLayout.tsx b/frontend/src/components/layout/TasksLayout.tsx index 69334dd0..b24890f3 100644 --- a/frontend/src/components/layout/TasksLayout.tsx +++ b/frontend/src/components/layout/TasksLayout.tsx @@ -285,13 +285,18 @@ export function TasksLayout({
- {attempt} + {rightHeader && ( +
+ {rightHeader} +
+ )} +
{attempt}
void; @@ -30,10 +31,11 @@ export const AttemptHeaderActions = ({ }: AttemptHeaderActionsProps) => { const { t } = useTranslation('tasks'); const posthog = usePostHog(); + const isXL = useMediaQuery('(min-width: 1280px)'); return ( <> - {typeof mode !== 'undefined' && onModeChange && ( + {typeof mode !== 'undefined' && onModeChange && isXL && ( )} - {typeof mode !== 'undefined' && onModeChange && ( + {typeof mode !== 'undefined' && onModeChange && isXL && (
)}