Skip to content

Commit

Permalink
Merge pull request #283 from vigvamapp/fix-tooltip-overflow
Browse files Browse the repository at this point in the history
Fixed tooltip overflowing
  • Loading branch information
serg-plusplus authored Aug 11, 2022
2 parents 866eab1 + 3ddca91 commit 6dac892
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/blocks/overview/NftInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const NftInfo: FC = () => {
{preparedId && (
<CopiableTooltip
content={preparedId}
textToCopy={preparedId}
textToCopy={tokenId}
followCursor
plugins={[followCursor]}
className={classNames(
Expand Down
3 changes: 2 additions & 1 deletion src/app/components/elements/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Tooltip: FC<TooltipProps> = ({
}
interactive={interactive ?? size === "large"}
appendTo={overflowElement ?? document.body}
maxWidth={maxWidth ?? (size === "large" ? "18rem" : "none")}
maxWidth={maxWidth ?? "18rem"}
placement={placement ?? (size === "large" ? "right-start" : "bottom")}
hideOnClick={hideOnClick}
className="pointer-events-auto"
Expand Down Expand Up @@ -101,6 +101,7 @@ const getSizeClasses = (size: sizeType) =>
.otherwise(() =>
classNames(
"rounded-md",
"overflow-hidden truncate",
"bg-brand-main/20 backdrop-blur-[6px]",
IS_FIREFOX && "!bg-[#414356]/[.98]",
"py-1 px-3"
Expand Down

0 comments on commit 6dac892

Please sign in to comment.