Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: empty issue title indicator (#5173)

Anmol Singh Bhatiac2b5464e4032
diff --git a/web/core/components/issues/title-input.tsx b/web/core/components/issues/title-input.tsx
index 295ea50f63..a8edb792d7 100644
--- a/web/core/components/issues/title-input.tsx
+++ b/web/core/components/issues/title-input.tsx
@@ -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>
);
});