Don't focus feed create unless there's no question yet

This commit is contained in:
jahooma 2022-01-28 13:23:44 -06:00
parent 836c87b371
commit f04d66d5c8
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ export default function FeedCreate(props: {
return (
<div
className={clsx('w-full bg-white p-4 border-b-2 mt-2', className)}
onClick={() => inputRef.current?.focus()}
onClick={() => !question && inputRef.current?.focus()}
>
<div className="relative flex items-start space-x-3">
<Avatar username={user?.username} avatarUrl={user?.avatarUrl} noLink />

View File

@ -236,7 +236,7 @@ export default function FoldPage(props: {
contractComments={activeContractComments}
/>
{activeContracts.length === 0 && (
<div className="text-gray-500 mt-4">
<div className="text-gray-500 mt-4 mx-2 lg:mx-0">
No activity from matching markets.{' '}
{isCurator && 'Try editing to add more tags!'}
</div>