Skip to content

Commit 3068fa4

Browse files
feat: enable drag-to-expand for field description textarea (#2011)
Changed the field description textarea from fixed height (h-12) with resize-none to minimum height (min-h-12) with vertical resizing (resize-y). This allows users to drag and expand the description area when there is long text content that would otherwise be cut off. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Bieber <artist@teable.io>
1 parent b4e5c54 commit 3068fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/nextjs-app/src/features/app/components/field-setting/FieldEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export const FieldEditor = (props: {
211211
<span className="mb-2 text-sm font-medium">{t('common:description')}</span>
212212
</div>
213213
<Textarea
214-
className="h-12 resize-none"
214+
className="min-h-12 resize-y"
215215
value={field['description'] || undefined}
216216
placeholder={t('table:field.editor.descriptionPlaceholder')}
217217
onChange={(e) => updateFieldProps({ description: e.target.value || null })}

0 commit comments

Comments
 (0)