diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index ed7374b1..33c8d6aa 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -183,7 +183,6 @@ export function MarketSubheader(props: { className="my-auto whitespace-nowrap" name={creatorName} username={creatorUsername} - short={isMobile} /> {/**/} diff --git a/web/components/user-link.tsx b/web/components/user-link.tsx index d7f660ae..18a866cc 100644 --- a/web/components/user-link.tsx +++ b/web/components/user-link.tsx @@ -1,5 +1,6 @@ import { SiteLink } from 'web/components/site-link' import clsx from 'clsx' +import { useWindowSize } from 'web/hooks/use-window-size' export function shortenName(name: string) { const firstName = name.split(' ')[0] @@ -24,10 +25,12 @@ export function UserLink(props: { }) { const { name, username, className, short, noLink } = props const shortName = short ? shortenName(name) : name + const { width } = useWindowSize() return (