Skip to content

Commit

Permalink
fix(web): add max height to chat scrollarea
Browse files Browse the repository at this point in the history
  • Loading branch information
renanr0cha authored and brunocroh committed Jun 13, 2024
1 parent 13f73ae commit b6de5e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/app/room/[slug]/components/chat.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import React, { useRef, useState } from 'react'
import React, { useState } from 'react'
import { MessageCircle } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
Expand Down Expand Up @@ -41,7 +41,7 @@ export const Chat: React.FC<Chat> = ({ messages, onSend }) => {

return (
<div className="align-center flex h-full w-full flex-col items-center justify-center gap-2">
<ScrollArea className="flex w-full flex-1 items-center gap-2 rounded-lg border p-4">
<ScrollArea className="md:min-h-5/6 flex max-h-[400px] w-full flex-1 items-center gap-2 rounded-lg border p-4 md:max-h-[84vh]">
{!messages.length ? (
<div className="mt-6 flex flex-col items-center ">
<MessageCircle className="text-muted" />
Expand Down

0 comments on commit b6de5e7

Please sign in to comment.