diff --git a/CHANGELOG.md b/CHANGELOG.md index 2995798ba..32959f1ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -107,6 +107,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Bug fixes +- [#118](https://github.com/alleslabs/celatone-frontend/pull/118) Fix floating tooltip when scrolling out of copy button - [#111](https://github.com/alleslabs/celatone-frontend/pull/111) Fix recent activities navigation and instantiate encode/decode - [#105](https://github.com/alleslabs/celatone-frontend/pull/105) Propoerly show instantiator of code contracts and contract in the instantiated list - [#42](https://github.com/alleslabs/celatone-frontend/pull/42) Properly show CTAs on contract-list page and edit zero/disconnected state diff --git a/src/lib/components/Copier.tsx b/src/lib/components/Copier.tsx index a032f66d1..424c6fe96 100644 --- a/src/lib/components/Copier.tsx +++ b/src/lib/components/Copier.tsx @@ -1,13 +1,21 @@ import { CopyIcon } from "@chakra-ui/icons"; +import type { LayoutProps } from "@chakra-ui/react"; import { Tooltip, useClipboard } from "@chakra-ui/react"; import { useEffect } from "react"; interface CopierProps { value: string; ml?: string; + className?: string; + display?: LayoutProps["display"]; } -export const Copier = ({ value, ml = "8px" }: CopierProps) => { +export const Copier = ({ + value, + ml = "8px", + className, + display = "flex", +}: CopierProps) => { const { onCopy, hasCopied, setValue } = useClipboard(value); useEffect(() => setValue(value), [value, setValue]); @@ -21,17 +29,20 @@ export const Copier = ({ value, ml = "8px" }: CopierProps) => { arrowSize={8} bg="primary.dark" > - { - e.stopPropagation(); - onCopy(); - }} - /> +
+ { + e.stopPropagation(); + onCopy(); + }} + /> +
); }; diff --git a/src/lib/components/ExplorerLink.tsx b/src/lib/components/ExplorerLink.tsx index 866cacf48..f41d07091 100644 --- a/src/lib/components/ExplorerLink.tsx +++ b/src/lib/components/ExplorerLink.tsx @@ -139,7 +139,6 @@ export const ExplorerLink = ({ return ( @@ -161,13 +163,12 @@ export const ExplorerLink = ({ isEllipsis={textFormat === "ellipsis"} maxWidth={maxWidth} /> - - - + )}