From 5e4907e940e2b16e3745613b144a8cb2c6311cd5 Mon Sep 17 00:00:00 2001 From: legao <837937787@qq.com> Date: Mon, 2 Sep 2024 03:05:54 +0000 Subject: [PATCH] fix: layout shift on app card hover (#7872) --- web/app/(commonLayout)/apps/AppCard.tsx | 19 +++++++++---------- web/app/components/explore/app-card/index.tsx | 12 ++++++++---- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/web/app/(commonLayout)/apps/AppCard.tsx b/web/app/(commonLayout)/apps/AppCard.tsx index bc7308a711a06..6dcc39046c400 100644 --- a/web/app/(commonLayout)/apps/AppCard.tsx +++ b/web/app/(commonLayout)/apps/AppCard.tsx @@ -255,7 +255,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => { e.preventDefault() getRedirection(isCurrentWorkspaceEditor, app, push) }} - className='group flex col-span-1 bg-white border-2 border-solid border-transparent rounded-xl shadow-sm min-h-[160px] flex flex-col transition-all duration-200 ease-in-out cursor-pointer hover:shadow-lg' + className='relative group col-span-1 bg-white border-2 border-solid border-transparent rounded-xl shadow-sm flex flex-col transition-all duration-200 ease-in-out cursor-pointer hover:shadow-lg' >