From 196faf1e0457cc1974ea625e4ed8c23af212f1ec Mon Sep 17 00:00:00 2001 From: Gerald Versluis Date: Fri, 20 Feb 2026 22:32:13 +0100 Subject: [PATCH] fix: hide desktop-only context actions on mobile Report Bug, Fix with Copilot, Copilot Console, Terminal, and VS Code actions in the session context menu don't work on mobile. Wrap them in a PlatformHelper.IsMobile check to hide them on iOS/Android. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Components/Layout/SessionListItem.razor | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/PolyPilot/Components/Layout/SessionListItem.razor b/PolyPilot/Components/Layout/SessionListItem.razor index df5e787996..61dc791eb8 100644 --- a/PolyPilot/Components/Layout/SessionListItem.razor +++ b/PolyPilot/Components/Layout/SessionListItem.razor @@ -119,29 +119,32 @@ } } - - - - - @if (!string.IsNullOrEmpty(Session.SessionId)) - { - - } - @if (!string.IsNullOrEmpty(sessionDir)) + @if (!PlatformHelper.IsMobile) { - - + @if (!string.IsNullOrEmpty(Session.SessionId)) + { + + } + @if (!string.IsNullOrEmpty(sessionDir)) + { + + + + } }