fix: empty issue title indicator (#5173)

This commit is contained in:
Anmol Singh Bhatia
2024-07-19 15:12:59 +05:30
committed by GitHub
parent e055abb711
commit c2b5464e40

View File

@@ -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>
);
});