feat: implement AutoTextarea component for dynamic height adjustment in text areas

This commit is contained in:
Christopher
2026-01-22 10:47:44 -08:00
parent 64fbca7fbb
commit f589635d03
5 changed files with 66 additions and 5 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
import { useState, useEffect } from 'react';
import Link from 'next/link';
import { useAuth } from '@/lib/contexts/AuthContext';
import AutoTextarea from '@/components/AutoTextarea';
interface User {
id: string;
@@ -260,7 +261,7 @@ function Compose({ onPost }: { onPost: (content: string, mediaIds: string[]) =>
return (
<div className="compose">
<textarea
<AutoTextarea
className="compose-input"
placeholder="What's happening?"
value={content}