Remove card vibration animation for specific content
Removed conditional logic for 'animate-shake' and 'animate-float-shake' classes in MainContent.tsx, simplifying animation to only 'animate-float' when articles are present. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f8b8f0ea-e52e-4118-9b6b-e44184e17203 Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
@ -75,13 +75,9 @@ export default function MainContent() {
|
|||||||
const hasArticles = articleCount > 0;
|
const hasArticles = articleCount > 0;
|
||||||
const isErlingHaaland = outlet.slug === 'erling-haaland';
|
const isErlingHaaland = outlet.slug === 'erling-haaland';
|
||||||
|
|
||||||
const animationClass = isErlingHaaland && hasArticles
|
const animationClass = hasArticles
|
||||||
? 'animate-float-shake ring-2 ring-blue-400/30 shadow-lg'
|
? 'animate-float ring-2 ring-blue-400/30 shadow-lg'
|
||||||
: isErlingHaaland
|
: '';
|
||||||
? 'animate-shake'
|
|
||||||
: hasArticles
|
|
||||||
? 'animate-float ring-2 ring-blue-400/30 shadow-lg'
|
|
||||||
: '';
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
|
|||||||
Reference in New Issue
Block a user