mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 16:19:43 +01:00
fix: empty issue title indicator (#5173)
This commit is contained in:
committed by
GitHub
parent
e055abb711
commit
c2b5464e40
@@ -110,7 +110,7 @@ export const IssueTitleInput: FC<IssueTitleInputProps> = observer((props) => {
|
||||
className={cn(
|
||||
"block w-full resize-none overflow-hidden rounded border-none bg-transparent px-3 py-0 text-2xl font-medium outline-none ring-0",
|
||||
{
|
||||
"ring-1 ring-red-400 mx-3": title.length && title.length === 0,
|
||||
"ring-1 ring-red-400 mx-2.5": title?.length === 0,
|
||||
},
|
||||
className
|
||||
)}
|
||||
@@ -134,7 +134,7 @@ export const IssueTitleInput: FC<IssueTitleInputProps> = observer((props) => {
|
||||
/255
|
||||
</div>
|
||||
</div>
|
||||
{title.length && title.length === 0 && <span className="text-sm text-red-500">Title is required</span>}
|
||||
{title?.length === 0 && <span className="text-sm text-red-500">Title is required</span>}
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user