diff --git a/explorer/src/constants/columns/portal.tsx b/explorer/src/constants/columns/portal.tsx index e9b818ad..b96b5fb1 100644 --- a/explorer/src/constants/columns/portal.tsx +++ b/explorer/src/constants/columns/portal.tsx @@ -7,6 +7,7 @@ import { TdHandler } from "@/components/DataTable/components/TdHandler"; import { HelperIndicator } from "@/components/HelperIndicator"; import { Link } from "@/components/Link"; import { EMPTY_STRING, ZERO, ZERO_ADDRESS } from "@/constants"; +import { ColumnsOptions } from "@/interfaces/components"; import { toPortalById } from "@/routes/constants"; import { getBlockExplorerLink } from "@/utils"; import { cropString } from "@/utils/stringUtils"; @@ -57,15 +58,19 @@ export const columns = ({ chain }: { chain: Chain }): ColumnDef[] => [ }, ]; -export const portalColumnsOption = { - name: { - width: "25%", +export const portalColumnsOption: ColumnsOptions = { + 0: { + minWidth: 150, + maxWidth: 200, + isRandomWidth: true, }, - description: { - width: "50%", + 1: { + minWidth: 200, + maxWidth: 400, + isRandomWidth: true, }, - owner: { - width: "25%", + 2: { + width: 150, }, }; diff --git a/explorer/src/constants/index.ts b/explorer/src/constants/index.ts index b787b125..dd6502d5 100644 --- a/explorer/src/constants/index.ts +++ b/explorer/src/constants/index.ts @@ -1,3 +1,4 @@ +import { Address } from "viem"; import { arbitrum, arbitrumSepolia, base, baseSepolia, bsc, bscTestnet, linea } from "wagmi/chains"; import { lineaSepolia } from "@/config"; @@ -10,7 +11,7 @@ export const DASH = "-"; export const ZERO_STRING = "0"; export const TEN = 10; export const ZERO = 0; -export const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000" as `0x${string}`; +export const ZERO_ADDRESS: Address = "0x0000000000000000000000000000000000000000"; export const ITEMS_PER_PAGE_DEFAULT = 10; export const ITEMS_SEARCHED_DEFAULT = 100; export const CURRENT_PAGE_DEFAULT = 1;