Skip to content

Commit

Permalink
fix: view, api token and estimate modal description height (#4310)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia committed Apr 29, 2024
1 parent 32d14d7 commit 4104f87
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions web/components/api-token/modal/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
)}
/>
Expand All @@ -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}
Expand Down Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion web/components/estimates/create-update-estimate-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion web/components/views/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion web/components/workspace/views/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
/>
)}
Expand Down

0 comments on commit 4104f87

Please sign in to comment.