Skip to content

Commit 8635ec9

Browse files
committed
fix the flex layout
1 parent 2cee272 commit 8635ec9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/components/ChatInterface.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function ChatInterface({
4646
});
4747

4848
return (
49-
<div className="flex-1 flex flex-col bg-gradient-to-br from-gray-900 to-gray-800 rounded-xl shadow-lg border border-gray-700">
49+
<div className="flex-1 min-h-0 flex flex-col bg-gradient-to-br from-gray-900 to-gray-800 rounded-xl shadow-lg border border-gray-700">
5050
{selectedRepo && (
5151
<div className="mb-2 bg-gray-800 px-4 py-2 rounded-lg text-gray-300 border-b border-gray-700 text-sm">
5252
Chatting about:{" "}
@@ -56,7 +56,7 @@ export default function ChatInterface({
5656
</div>
5757
)}
5858

59-
<div className="flex-1 overflow-y-auto max-h-screen space-y-4 p-4 pr-2 custom-scrollbar">
59+
<div className="flex-1 min-h-0 overflow-y-auto space-y-4 p-4 pr-2 custom-scrollbar">
6060
{messages.map((msg, idx) => (
6161
<div
6262
key={idx}

0 commit comments

Comments
 (0)