fix: view, api token and estimate modal description height (#4310)

This commit is contained in:
Anmol Singh Bhatia 2024-04-29 18:58:31 +05:30 committed by GitHub
parent 32d14d7000
commit 4104f87d41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View File

@ -146,7 +146,7 @@ export const CreateApiTokenForm: React.FC<Props> = (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> = (props) => {
{value === "custom"
? "Custom date"
: selectedOption
? selectedOption.label
: "Set expiration date"}
? selectedOption.label
: "Set expiration date"}
</div>
}
value={value}
@ -207,8 +207,8 @@ export const CreateApiTokenForm: React.FC<Props> = (props) => {
? `Expires ${renderFormattedDate(customDate)}`
: null
: watch("expired_at")
? `Expires ${getExpiryDate(watch("expired_at") ?? "")}`
: null}
? `Expires ${getExpiryDate(watch("expired_at") ?? "")}`
: null}
</span>
)}
</div>

View File

@ -256,7 +256,7 @@ export const CreateUpdateEstimateModal: React.FC<Props> = 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)}
/>
)}

View File

@ -148,7 +148,7 @@ export const ProjectViewForm: React.FC<Props> = 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}

View File

@ -137,7 +137,7 @@ export const WorkspaceViewForm: React.FC<Props> = 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)}
/>
)}