diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index 090020e0..ce03108d 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -104,10 +104,7 @@ export function ContractCard(props: { contract={contract} className={'hidden md:inline-flex'} /> -

+

{question}

diff --git a/web/components/leaderboard.tsx b/web/components/leaderboard.tsx index b8c725e0..a0670795 100644 --- a/web/components/leaderboard.tsx +++ b/web/components/leaderboard.tsx @@ -40,7 +40,7 @@ export function Leaderboard(props: { {users.map((user, index) => ( {index + 1} - + diff --git a/web/components/linkify.tsx b/web/components/linkify.tsx index f33b2bf5..b4f05165 100644 --- a/web/components/linkify.tsx +++ b/web/components/linkify.tsx @@ -38,10 +38,7 @@ export function Linkify(props: { text: string; gray?: boolean }) { ) }) return ( - + {text.split(regex).map((part, i) => ( {part} diff --git a/web/components/outcome-label.tsx b/web/components/outcome-label.tsx index 3260018c..94b2b878 100644 --- a/web/components/outcome-label.tsx +++ b/web/components/outcome-label.tsx @@ -164,10 +164,7 @@ export function AnswerLabel(props: { return ( - + {truncated} diff --git a/web/components/site-link.tsx b/web/components/site-link.tsx index ee12d519..f395e6a9 100644 --- a/web/components/site-link.tsx +++ b/web/components/site-link.tsx @@ -3,7 +3,7 @@ import { ReactNode } from 'react' import Link from 'next/link' export const linkClass = - 'z-10 break-words hover:underline hover:decoration-indigo-400 hover:decoration-2' + 'z-10 break-anywhere hover:underline hover:decoration-indigo-400 hover:decoration-2' export const SiteLink = (props: { href: string @@ -19,7 +19,6 @@ export const SiteLink = (props: { className={clsx(linkClass, className)} href={href} target={href.startsWith('http') ? '_blank' : undefined} - style={{ /* For iOS safari */ wordBreak: 'break-word' }} onClick={(e) => { e.stopPropagation() if (onClick) onClick() diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx index 56a041f1..a20fc58a 100644 --- a/web/components/user-page.tsx +++ b/web/components/user-page.tsx @@ -148,10 +148,7 @@ export function UserPage(props: { user: User }) { - + {user.name} @{user.username} diff --git a/web/tailwind.config.js b/web/tailwind.config.js index 5fbc6c15..566404fa 100644 --- a/web/tailwind.config.js +++ b/web/tailwind.config.js @@ -56,6 +56,10 @@ module.exports = { display: 'none', }, }, + '.break-anywhere': { + 'overflow-wrap': 'anywhere', + 'word-break': 'break-word', // for Safari + }, }) }), ],