Skip to content

Commit d7c4abe

Browse files
committed
Edit margin/spacing changes for mobile
1 parent 582a949 commit d7c4abe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/src/Chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ export default function Chat() {
2828
<div className="flex w-full items-center ">
2929
<div className="flex-1 transition-all duration-300">
3030
<div
31-
className={`container relative h-[calc(100vh-4rem)] flex flex-col mx-auto p-6 bg-[#F4F4F2] rounded-lg shadow-[0_4px_6px_rgba(0,0,0,0.1)]
31+
className={`container relative flex flex-col mx-auto p-6 bg-[#F4F4F2] rounded-lg shadow-[0_4px_6px_rgba(0,0,0,0.1)]
3232
${
3333
isOngoing
34-
? "justify-between sm:h-[calc(100dvh-10rem)]"
34+
? "justify-between h-[calc(100dvh-4rem)] max-h-[calc(100dvh-4rem)] sm:h-[calc(100dvh-10rem)]"
3535
: "justify-center max-w-[600px]"
3636
}`}
3737
>

frontend/src/pages/Chat/components/MessageWindow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function MessageWindow({
5050
</div>
5151
) : (
5252
<div
53-
className={`max-h-[calc(100vh-15rem)] sm:max-h-[calc(100vh-20rem)] mx-auto max-w-[700px] ${
53+
className={`max-h-[calc(100dvh-240px)] mx-auto max-w-[700px] ${
5454
isOngoing ? "overflow-y-scroll" : "overflow-y-none"
5555
}`}
5656
ref={messagesRef}

0 commit comments

Comments
 (0)