diff --git a/components/overlays/add-connection-overlay.tsx b/components/overlays/add-connection-overlay.tsx index 3d3e4fe1..8df7aa2f 100644 --- a/components/overlays/add-connection-overlay.tsx +++ b/components/overlays/add-connection-overlay.tsx @@ -7,6 +7,7 @@ import { toast } from "sonner"; import { Input } from "@/components/ui/input"; import { IntegrationIcon } from "@/components/ui/integration-icon"; import { Label } from "@/components/ui/label"; +import { useIsMobile } from "@/hooks/use-mobile"; import { aiGatewayStatusAtom, aiGatewayTeamsAtom, @@ -64,6 +65,7 @@ export function AddConnectionOverlay({ }: AddConnectionOverlayProps) { const { push, closeAll } = useOverlay(); const [searchQuery, setSearchQuery] = useState(""); + const isMobile = useIsMobile(); // AI Gateway state const aiGatewayStatus = useAtomValue(aiGatewayStatusAtom); @@ -138,7 +140,7 @@ export function AddConnectionOverlay({
setSearchQuery(e.target.value)} placeholder="Search services..." diff --git a/components/overlays/edit-connection-overlay.tsx b/components/overlays/edit-connection-overlay.tsx index 4311f2d6..0997a6ce 100644 --- a/components/overlays/edit-connection-overlay.tsx +++ b/components/overlays/edit-connection-overlay.tsx @@ -7,6 +7,7 @@ import { Button } from "@/components/ui/button"; import { Checkbox } from "@/components/ui/checkbox"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; +import { useIsMobile } from "@/hooks/use-mobile"; import { api, type Integration } from "@/lib/api-client"; import { getIntegration, getIntegrationLabels } from "@/plugins"; import { ConfirmOverlay } from "./confirm-overlay"; @@ -52,6 +53,7 @@ function SecretField({ onChange: (key: string, value: string) => void; }) { const [isEditing, setIsEditing] = useState(false); + const isMobile = useIsMobile(); const hasNewValue = value.length > 0; // Show "Configured" state until user clicks Change @@ -82,7 +84,7 @@ function SecretField({
onChange(configKey, e.target.value)} diff --git a/components/workflow/config/action-grid.tsx b/components/workflow/config/action-grid.tsx index 20f986d6..a221c9c1 100644 --- a/components/workflow/config/action-grid.tsx +++ b/components/workflow/config/action-grid.tsx @@ -27,6 +27,7 @@ import { TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; +import { useIsMobile } from "@/hooks/use-mobile"; import { cn } from "@/lib/utils"; import { getAllActions } from "@/plugins"; @@ -166,6 +167,7 @@ export function ActionGrid({ const [viewMode, setViewMode] = useState(getInitialViewMode); const actions = useAllActions(); const inputRef = useRef(null); + const isMobile = useIsMobile(); const toggleViewMode = () => { const newMode = viewMode === "list" ? "grid" : "list"; @@ -253,7 +255,7 @@ export function ActionGrid({