Wrap profile fields
This commit is contained in:
parent
ca68bc9df8
commit
867912aa1b
1 changed files with 10 additions and 8 deletions
|
@ -186,7 +186,7 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||||
<Text size='sm' dangerouslySetInnerHTML={content} />
|
<Text size='sm' dangerouslySetInnerHTML={content} />
|
||||||
}
|
}
|
||||||
|
|
||||||
<div className='flex flex-col md:flex-row items-start md:items-center space-x-0 md:space-x-2'>
|
<div className='flex flex-col md:flex-row items-start md:flex-wrap md:items-center gap-2'>
|
||||||
{isLocal(account) ? (
|
{isLocal(account) ? (
|
||||||
<HStack alignItems='center' space={0.5}>
|
<HStack alignItems='center' space={0.5}>
|
||||||
<Icon
|
<Icon
|
||||||
|
@ -224,13 +224,15 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||||
className='w-4 h-4 text-gray-800'
|
className='w-4 h-4 text-gray-800'
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Text size='sm'>
|
<div className='max-w-[300px]'>
|
||||||
{isSafeUrl(account.get('website')) ? (
|
<Text size='sm' truncate>
|
||||||
<a className='text-primary-600 hover:underline' href={account.get('website')} target='_blank'>{account.get('website')}</a>
|
{isSafeUrl(account.get('website')) ? (
|
||||||
) : (
|
<a className='text-primary-600 hover:underline' href={account.get('website')} target='_blank'>{account.get('website')}</a>
|
||||||
account.get('website')
|
) : (
|
||||||
)}
|
account.get('website')
|
||||||
</Text>
|
)}
|
||||||
|
</Text>
|
||||||
|
</div>
|
||||||
</HStack>
|
</HStack>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue