From 4e479870a9eef481595b735fa2580c68dce4bce1 Mon Sep 17 00:00:00 2001 From: clawdbot Date: Wed, 28 Jan 2026 04:55:51 +0800 Subject: [PATCH] sdk: prefer iframe over video when inferring goView widgets --- packages/sdk/src/core/goview/convert.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/sdk/src/core/goview/convert.ts b/packages/sdk/src/core/goview/convert.ts index 9f45616..074f36c 100644 --- a/packages/sdk/src/core/goview/convert.ts +++ b/packages/sdk/src/core/goview/convert.ts @@ -430,14 +430,14 @@ export function convertGoViewProjectToScreen(input: GoViewProjectLike | GoViewSt const inferredType: 'text' | 'image' | 'iframe' | 'video' | undefined = isImage(c) || looksLikeImageOption(option) ? 'image' - : optionSaysVideo - ? 'video' - : optionSaysIframe - ? 'iframe' - : isVideo(c) - ? 'video' - : isIframe(c) - ? 'iframe' + : optionSaysIframe + ? 'iframe' + : optionSaysVideo + ? 'video' + : isIframe(c) + ? 'iframe' + : isVideo(c) + ? 'video' : isTextCommon(c) ? 'text' : undefined;