Skip to content

Commit 46ba027

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
Move Donate and Guide buttons to bottom in Mol* view to avoid covering sequence
1 parent 948a22f commit 46ba027

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/HelpGuide.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,16 +612,16 @@ export const HelpGuide: React.FC<{ isVisible?: boolean, isLightMode?: boolean, h
612612
return (
613613
<>
614614
{/* Donation Dropdown (Floating next to Help) */}
615-
<div className={`fixed top-4 z-40 group transition-all duration-300 ease-in-out ${isMolStarActive ? 'right-[380px]' : (hasSequence ? 'right-[80px] md:right-[176px]' : 'right-[80px]')}`}>
615+
<div className={`fixed z-40 group transition-all duration-300 ease-in-out ${isMolStarActive ? 'bottom-20 right-[380px]' : `top-4 ${hasSequence ? 'right-[80px] md:right-[176px]' : 'right-[80px]'}`}`}>
616616
<button
617617
className={`h-10 px-4 rounded-full border shadow-lg backdrop-blur-md transition-all group-hover:bg-neutral-800 group-hover:text-white flex items-center gap-2 ${isLightMode ? 'bg-white/80 text-pink-600 border-black/10' : 'bg-neutral-900/80 text-pink-500 border-white/10'}`}
618618
>
619619
<Heart className={`w-4 h-4 ${isLightMode ? 'fill-pink-100' : 'fill-pink-900/30'}`} />
620620
<span className="text-xs font-bold hidden sm:block">Donate</span>
621621
</button>
622622

623-
{/* Dropdown Menu */}
624-
<div className="absolute right-0 top-12 w-48 py-2 bg-neutral-900/90 backdrop-blur-xl border border-white/10 rounded-xl shadow-2xl opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 transform translate-y-[-10px] group-hover:translate-y-0 flex flex-col overflow-hidden">
623+
{/* Dropdown Menu - Upward or Downward depending on position */}
624+
<div className={`absolute right-0 w-48 py-2 bg-neutral-900/90 backdrop-blur-xl border border-white/10 rounded-xl shadow-2xl opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 transform flex flex-col overflow-hidden ${isMolStarActive ? 'bottom-12 translate-y-[10px] group-hover:translate-y-0' : 'top-12 translate-y-[-10px] group-hover:translate-y-0'}`}>
625625
{/* Buy Me A Coffee */}
626626
<a
627627
href="https://buymeacoffee.com/amirmcheraghali"
@@ -659,7 +659,7 @@ export const HelpGuide: React.FC<{ isVisible?: boolean, isLightMode?: boolean, h
659659
{/* Trigger Button */}
660660
<button
661661
onClick={() => setIsOpen(true)}
662-
className={`fixed top-4 z-40 h-10 w-10 flex items-center justify-center rounded-full border shadow-lg backdrop-blur-md transition-all duration-300 ease-in-out hover:scale-105 group ${isMolStarActive ? 'right-[330px]' : (hasSequence ? 'right-[27px] md:right-[123px]' : 'right-[27px]')} ${isLightMode ? 'bg-white/80 text-neutral-600 hover:text-blue-600 border-black/10 hover:bg-white' : 'bg-neutral-900/80 text-neutral-400 hover:text-white border-white/10'}`}
662+
className={`fixed z-40 h-10 w-10 flex items-center justify-center rounded-full border shadow-lg backdrop-blur-md transition-all duration-300 ease-in-out hover:scale-105 group ${isMolStarActive ? 'bottom-20 right-[330px]' : `top-4 ${hasSequence ? 'right-[27px] md:right-[123px]' : 'right-[27px]'}`} ${isLightMode ? 'bg-white/80 text-neutral-600 hover:text-blue-600 border-black/10 hover:bg-white' : 'bg-neutral-900/80 text-neutral-400 hover:text-white border-white/10'}`}
663663
title="Viewer Controls & Help"
664664
>
665665
<CircleHelp className="w-5 h-5 group-hover:rotate-12 transition-transform" />

0 commit comments

Comments
 (0)