From c100c0bd8577f52c85f2950f748aebb7840c5a7f Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Wed, 21 Aug 2024 16:17:35 +0530 Subject: [PATCH] fix: empty state comic button responsiveness (#5401) --- .../empty-state/comic-box-button.tsx | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/web/core/components/empty-state/comic-box-button.tsx b/web/core/components/empty-state/comic-box-button.tsx index 83b2219fd..6a1a1e59c 100644 --- a/web/core/components/empty-state/comic-box-button.tsx +++ b/web/core/components/empty-state/comic-box-button.tsx @@ -1,6 +1,6 @@ "use client"; -import { Ref, useState } from "react"; +import { Fragment, Ref, useState } from "react"; import { usePopper } from "react-popper"; import { Popover } from "@headlessui/react"; // popper @@ -43,33 +43,35 @@ export const ComicBoxButton: React.FC = (props) => { }); return ( - - -
- {icon} - {label} - -
-
- -
+ + + {isHovered && ( - } - style={styles.popper} - {...attributes.popper} - static - > -
-

{title}

-

{description}

+ +
} + style={styles.popper} + {...attributes.popper} + > +
+

{title}

+

{description}

+
)}