fix: layout shift

This commit is contained in:
Stephen Zhou 2024-10-09 10:05:23 +08:00
parent b4fed7801b
commit f5f521300f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export const RecommendationCard: FC<RecommendationCardProps> = memo(({ data, rou
>
<button
type="button"
className="rounded p-0.5 duration-200 hover:bg-muted hover:px-1.5"
className="-translate-x-1.5 rounded p-0.5 px-1.5 duration-200 hover:translate-x-0 hover:bg-muted"
onClick={() => {
present({
id: `recommendation-content-${route}`,