Skip to content

Commit 6608c17

Browse files
committed
Fix chats list regression
1 parent e088040 commit 6608c17

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

frontend/src/app/collaboration/components/question.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ const Question = ({
294294
);
295295

296296
return (
297-
<div className="px-2 grid grid-rows-[20%_45%_35%] gap-2 grid-cols-1 h-full items-start">
297+
<div className="px-2 grid grid-rows-[20%_45%_35%] gap-2 grid-cols-1 h-full items-start max-h-[100vh]">
298298
<div className="mt-4 row-span-1 grid grid-rows-1 grid-cols-[75%_25%] w-full h-full">
299299
<div className="flex flex-col" ref={containerRef}>
300300
<h1
@@ -359,14 +359,6 @@ const Question = ({
359359
Exit Room
360360
</Button>
361361
</div>
362-
<<<<<<< HEAD
363-
<span className="row-span-1 text-primary-300 max-h-[100%] h-full overflow-y-auto flex flex-col bg-primary-800 p-3 rounded-md">
364-
<span className="text-yellow-500 font-bold text-md">Question Description</span>
365-
<span className="text-white py-2 text-xs">{question?.description}</span>
366-
</span>
367-
<div className="row-span-1 flex flex-col bg-primary-800 rounded-md h-full max-h-[90%] min-h-[80%] overflow-y-auto">
368-
{messages.length == 0 ? (
369-
=======
370362
<span className="row-span-1 text-primary-300 text-md max-h-[100%] h-full overflow-y-auto flex flex-col gap-2 bg-primary-800 p-3 rounded-md">
371363
<span className="text-yellow-500 font-bold">Question Description</span>
372364
<span className="text-white text-md py-4">{question?.description}</span>
@@ -415,14 +407,13 @@ const Question = ({
415407
</div>
416408
)}
417409
</span>
418-
<div className="row-span-1 flex flex-col bg-primary-800 rounded-md h-full max-h-[80%] min-h-[80%] overflow-y-auto">
410+
<div className="row-span-1 flex flex-col bg-primary-800 rounded-md h-full overflow-y-auto">
419411
{isLoading && (
420412
<div className="flex justify-center p-2">
421413
<MoonLoader size={20} />
422414
</div>
423415
)}
424416
{chatLogs.length === 0 ? (
425-
>>>>>>> 01a3654adb4dcd9a11153237fbd0c990683af6ca
426417
<span className="h-full w-full flex items-center justify-center text-primary-300 italic">
427418
Say hello to your match!
428419
</span>

0 commit comments

Comments
 (0)