Skip to content

Commit

Permalink
fix: invisible icon on hover Bot-Rakshit#135
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohit1310 committed Sep 6, 2024
1 parent 035dace commit 0c6da87
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
DropdownMenuItem,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu';
import { Home, Users, LogOut, Newspaper, BookOpen, ChevronLeft, ChevronRight, GraduationCap, Dices, Share2 } from 'lucide-react';
import { Home, Users, LogOut, Newspaper, BookOpen, ChevronRight, GraduationCap, Dices, Share2 } from 'lucide-react';
import { LucideIcon } from 'lucide-react';
import { motion, AnimatePresence } from 'framer-motion';
import samayBM from '@/assets/SamayBM.webp';
Expand Down Expand Up @@ -125,15 +125,10 @@ const Sidebar = () => {
variant="ghost"
size="icon"
onClick={handleToggleCollapse}
className="text-gray-400 hover:text-neon-green hover:bg-neon-green/5 rounded-full"
className={`text-gray-400 hover:text-neon-green hover:bg-neon-green/5 rounded-full ${!isCollapsed ? 'hidden' : ''}`}
>
{isCollapsed ? (
// Only show the ChevronRight icon when collapsed
{/* Only show the ChevronRight icon when collapsed */}
<ChevronRight size={20} />
) : (
// Hide the ChevronLeft icon when collapsed
<ChevronLeft size={30} className="hidden" />
)}
</Button>
)}
</div>
Expand Down

0 comments on commit 0c6da87

Please sign in to comment.