chore: bug fixes & improvement (#3218)

* chore: draft issue validation added to prevent saving empty or whitespace title

* chore: resolve scrolling issue in page empty state

* chore: kanban layout quick add issue improvement
This commit is contained in:
Anmol Singh Bhatia 2023-12-21 15:56:02 +05:30 committed by sriram veeraghanta
parent 5f681973a0
commit 0a41eff435
3 changed files with 63 additions and 61 deletions

View File

@ -41,6 +41,7 @@ export const NewEmptyState: React.FC<Props> = ({
setIsHovered(false);
};
return (
<div className="flex items-center justify-center overflow-y-auto">
<div className=" flex h-full w-full flex-col items-center justify-center ">
<div className="m-5 flex max-w-6xl flex-col gap-5 rounded-xl border border-custom-border-200 px-10 py-7 shadow-sm md:m-16">
<h3 className="text-2xl font-semibold">{title}</h3>
@ -107,5 +108,6 @@ export const NewEmptyState: React.FC<Props> = ({
</div>
</div>
</div>
</div>
);
};

View File

@ -22,7 +22,7 @@ const Inputs = (props: any) => {
}, [setFocus]);
return (
<div>
<div className="w-full">
<h4 className="text-xs font-medium leading-5 text-custom-text-300">{projectDetail?.identifier ?? "..."}</h4>
<input
autoComplete="off"

View File

@ -187,7 +187,7 @@ export const CreateUpdateIssueModal: React.FC<IssuesModalProps> = observer((prop
*/
const onDiscardClose = () => {
if (formDirtyState !== null) {
if (formDirtyState !== null && formDirtyState.name.trim() !== "") {
setShowConfirmDiscard(true);
} else {
handleClose();