diff --git a/explorer/src/components/DataTable/components/TdHandler/index.tsx b/explorer/src/components/DataTable/components/TdHandler/index.tsx index 96007062..657d9f5e 100644 --- a/explorer/src/components/DataTable/components/TdHandler/index.tsx +++ b/explorer/src/components/DataTable/components/TdHandler/index.tsx @@ -6,29 +6,29 @@ import { ITdHandler } from "./interface"; export const TdHandler: React.FC = ({ value, valueUrl, to, isTextLeft = false }) => { return ( -
+
{valueUrl ? ( e.stopPropagation()} - className={`hover:underline ${isTextLeft ? "translate-x-0" : "translate-x-5"} ${ - isTextLeft ? "group-hover:translate-x-5" : "group-hover:translate-x-0" + className={`hover:underline ${isTextLeft ? "translate-x-0" : "translate-x-2"} ${ + isTextLeft ? "group-hover:translate-x-2" : "group-hover:translate-x-0" } transition max-w-[300px] overflow-hidden text-ellipsis`} > {value} ) : (

{value}

)} e.stopPropagation()}> - +
); diff --git a/explorer/src/components/DataTable/index.tsx b/explorer/src/components/DataTable/index.tsx index 75fae995..b95f3fa6 100644 --- a/explorer/src/components/DataTable/index.tsx +++ b/explorer/src/components/DataTable/index.tsx @@ -61,7 +61,7 @@ export function DataTable({ columns, data, link }: DataTableProps className="table-row-transition hover:bg-jumbotronLight dark:hover:bg-jumbotronDark cursor-pointer" > {row.getVisibleCells().map((cell) => ( - + {flexRender(cell.column.columnDef.cell, cell.getContext())} ))} diff --git a/explorer/src/components/Tooltip/index.tsx b/explorer/src/components/Tooltip/index.tsx index 872fa06f..41f5654d 100644 --- a/explorer/src/components/Tooltip/index.tsx +++ b/explorer/src/components/Tooltip/index.tsx @@ -56,7 +56,7 @@ export const Tooltip: React.FC = ({ content, children, placement = ref={refs.setFloating} style={{ ...floatingStyles, zIndex: 1000 }} {...getFloatingProps()} - className={`p-2 rounded-md ${ + className={`p-2 rounded-md min-w-[250px] ${ isDarkMode ? "bg-whiteDefault text-blackDefault" : "bg-blackDefault text-whiteDefault" }`} > diff --git a/explorer/src/pages/Attestation/components/AttestationInfo/index.tsx b/explorer/src/pages/Attestation/components/AttestationInfo/index.tsx index a8b5fd5e..421acdb5 100644 --- a/explorer/src/pages/Attestation/components/AttestationInfo/index.tsx +++ b/explorer/src/pages/Attestation/components/AttestationInfo/index.tsx @@ -1,12 +1,13 @@ import { Attestation } from "@verax-attestation-registry/verax-sdk"; import { t } from "i18next"; -import { ArrowUpRight } from "lucide-react"; +import { Info } from "lucide-react"; import { useCallback } from "react"; import { Address, Hex, hexToNumber, isAddress } from "viem"; import { mainnet } from "viem/chains"; import { useEnsName } from "wagmi"; import { Link } from "@/components/Link"; +import { Tooltip } from "@/components/Tooltip"; import { useNetworkContext } from "@/providers/network-provider/context"; import { CHAIN_ID_ROUTE, toAttestationsBySubject, toPortalById } from "@/routes/constants"; import { getBlockExplorerLink } from "@/utils"; @@ -82,31 +83,25 @@ export const AttestationInfo: React.FC = ({ ...attestation }) => { #{displayAmountWithComma(hexToNumber(`0x${(id as Hex).substring(6)}`))}
- {list.map((item) => ( + {list.map((item, index) => (
-
{item.title.toUpperCase()}
- {item.to && ( +
+ {item.title.toUpperCase()} + {index === 1 && ( + + + + )} +
+ {item.to ? ( {item.value} - )} - - {item.link && ( - - {item.value} - - - )} - - {!item.to && !item.link && ( -
+ ) : ( +
{item.value}
)}