fix(sidebar): hide mascot animation when sidebar is collapsed

This commit is contained in:
MythEclipse
2026-06-03 18:36:38 +07:00
parent ee50afb1c1
commit 30b07e2c63
+1 -1
View File
@@ -111,7 +111,7 @@ export function Sidebar({
{/* Mascot PNG with anchored chatbot */}
<div className="relative flex justify-center pb-4">
{!mascotChat.isOpen && (
{!collapsed && !mascotChat.isOpen && (
<motion.div
initial={{ opacity: 0, x: -8, y: 6, scale: 0.96 }}
animate={{ opacity: 1, x: 0, y: 0, scale: 1 }}