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:
parent
1e3b188d90
commit
3d41e2cc42
7 changed files with 111 additions and 11 deletions
|
@ -0,0 +1,2 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE `Message` MODIFY `content` TEXT NOT NULL;
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue