From eafcfbe41979ffd1606b001de8918055b8d8c0ee Mon Sep 17 00:00:00 2001 From: Faran Javed Date: Thu, 15 Oct 2026 01:58:54 +0500 Subject: [PATCH] fix: #2178 better UX for the news cards --- .../src/pages/ApplicationV2/NewsLayout.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/client/packages/lowcoder/src/pages/ApplicationV2/NewsLayout.tsx b/client/packages/lowcoder/src/pages/ApplicationV2/NewsLayout.tsx index 6a09cd0a7..87730e901 100644 --- a/client/packages/lowcoder/src/pages/ApplicationV2/NewsLayout.tsx +++ b/client/packages/lowcoder/src/pages/ApplicationV2/NewsLayout.tsx @@ -128,7 +128,6 @@ export function NewsLayout() { return ( @@ -177,15 +176,22 @@ export function NewsLayout() { {youTubeData.map((item, idx) => { const s = item.snippet; + const videoUrl = `https://www.youtube.com/watch?v=${item.id.videoId}`; return ( - - - } + role="link" + tabIndex={0} + aria-label={s.title} + onClick={() => window.open(videoUrl, "_blank", "noopener,noreferrer")} + onKeyDown={(event) => { + if (event.key === "Enter") { + event.preventDefault(); + event.currentTarget.click(); + } + }} + cover={} > View} >