feat: add emoji picker to chat room message input

- Integrated emoji-picker-element library for emoji selection
- Added emoji toggle button in message input container
- Implemented emoji picker show/hide functionality
- Created CSS styles for emoji picker positioning
- Added event handling for emoji selection and outside click
- Updated package.json to include emoji-picker-element dependency
- Modified Prisma schema to use TEXT type for message content
- Updated Prisma migration scripts to use dotenv for environment configuration
This commit is contained in:
Juan Sebastián Montoya 2025-03-07 00:41:25 -05:00
parent 1e3b188d90
commit 3d41e2cc42
7 changed files with 111 additions and 11 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE `Message` MODIFY `content` TEXT NOT NULL;

View file

@ -40,7 +40,7 @@ model Room {
model Message {
id String @id @default(uuid())
content String
content String @db.Text
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
userId String