From b8e555db5d833eb5df78bbfc56aa8e029213cba9 Mon Sep 17 00:00:00 2001 From: mannubaveja007 <23bis70088@cuchd.in> Date: Sun, 29 Nov 2026 02:48:01 +0530 Subject: [PATCH] fix: add mobile entry and exit for the Search/CTF view --- src/components/ctf/CtfView.tsx | 17 +++++++ src/components/layout/MobileTabs.test.tsx | 62 +++++++++++++++++++++++ src/components/layout/MobileTabs.tsx | 10 ++-- src/i18n/en.ts | 1 + 4 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 src/components/layout/MobileTabs.test.tsx diff --git a/src/components/ctf/CtfView.tsx b/src/components/ctf/CtfView.tsx index 47f550f..b4c6dd5 100644 --- a/src/components/ctf/CtfView.tsx +++ b/src/components/ctf/CtfView.tsx @@ -1,5 +1,6 @@ import { useState } from 'react'; import { + ArrowLeft, Binary, Check, Copy, @@ -23,6 +24,7 @@ import { bySeverity, confidenceColor, cx } from '../ui/helpers'; import { LayerFind } from './LayerFind'; import { Button, ConfidenceBar } from '../ui/primitives'; import { CopyChip, FindingCard, IndicatorList } from '../analysis/Evidence'; +import { useIsDesktop } from '../../hooks/useMediaQuery'; const KIND_ICON: Record = { @@ -213,10 +215,24 @@ export function CtfView() { const input = useStore((s) => s.input); const analysis = useStore((s) => s.analysis); const chain = useStore((s) => s.chain); + const setActivity = useStore((s) => s.setActivity); + const isDesktop = useIsDesktop(); + + const back = !isDesktop && ( + + ); if (input.trim().length === 0) { return (
+ {back}