From 4104f87d41a8825ac869364d8560edb2c47c29bc Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Mon, 29 Apr 2024 18:58:31 +0530 Subject: [PATCH] fix: view, api token and estimate modal description height (#4310) --- web/components/api-token/modal/form.tsx | 10 +++++----- .../estimates/create-update-estimate-modal.tsx | 2 +- web/components/views/form.tsx | 2 +- web/components/workspace/views/form.tsx | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/components/api-token/modal/form.tsx b/web/components/api-token/modal/form.tsx index 93a92c9ef..7ba0ace71 100644 --- a/web/components/api-token/modal/form.tsx +++ b/web/components/api-token/modal/form.tsx @@ -146,7 +146,7 @@ export const CreateApiTokenForm: React.FC = (props) => { onChange={onChange} hasError={Boolean(errors.description)} placeholder="Token description" - className="h-24 w-full text-sm" + className="min-h-24 w-full text-sm" /> )} /> @@ -170,8 +170,8 @@ export const CreateApiTokenForm: React.FC = (props) => { {value === "custom" ? "Custom date" : selectedOption - ? selectedOption.label - : "Set expiration date"} + ? selectedOption.label + : "Set expiration date"} } value={value} @@ -207,8 +207,8 @@ export const CreateApiTokenForm: React.FC = (props) => { ? `Expires ${renderFormattedDate(customDate)}` : null : watch("expired_at") - ? `Expires ${getExpiryDate(watch("expired_at") ?? "")}` - : null} + ? `Expires ${getExpiryDate(watch("expired_at") ?? "")}` + : null} )} diff --git a/web/components/estimates/create-update-estimate-modal.tsx b/web/components/estimates/create-update-estimate-modal.tsx index 4bb495d85..479f2fb28 100644 --- a/web/components/estimates/create-update-estimate-modal.tsx +++ b/web/components/estimates/create-update-estimate-modal.tsx @@ -256,7 +256,7 @@ export const CreateUpdateEstimateModal: React.FC = observer((props) => { value={value} placeholder="Description" onChange={onChange} - className="mt-3 h-32 resize-none text-sm" + className="mt-3 min-h-32 resize-none text-sm" hasError={Boolean(errors?.description)} /> )} diff --git a/web/components/views/form.tsx b/web/components/views/form.tsx index cc1994eca..84405eb0d 100644 --- a/web/components/views/form.tsx +++ b/web/components/views/form.tsx @@ -148,7 +148,7 @@ export const ProjectViewForm: React.FC = observer((props) => { id="description" name="description" placeholder="Description" - className="h-24 w-full resize-none text-sm" + className="min-h-24 w-full resize-none text-sm" hasError={Boolean(errors?.description)} value={value} onChange={onChange} diff --git a/web/components/workspace/views/form.tsx b/web/components/workspace/views/form.tsx index 8d387d6c3..dfebf1db7 100644 --- a/web/components/workspace/views/form.tsx +++ b/web/components/workspace/views/form.tsx @@ -137,7 +137,7 @@ export const WorkspaceViewForm: React.FC = observer((props) => { value={value} placeholder="Description" onChange={onChange} - className="h-24 w-full resize-none text-sm" + className="min-h-24 w-full resize-none text-sm" hasError={Boolean(errors?.description)} /> )}