Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: scrollbar bug fixed #543

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/components/Chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const Chat = () => {
</p>
<ScrollToBottom
initialScrollBehavior="auto"
className="h-[100%] md:max-h-full overflow-y-scroll w-full scroll-smooth"
className="h-[100%] md:max-h-full overflow-y-auto w-full scroll-smooth"
>
{sortedMessages.map(
({ senderId: sender, id, message, time, status, isEdited, oldMessages, containsBadword, isRead }) => {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Chat/MessageInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const MessageInput = ({
<div className="w-full flex items-center justify-between bg-secondary rounded-l-md max-h-[150px] relative">
<textarea
placeholder="Press Ctrl + Enter to send a message"
className="h-[45px] focus:outline-none w-[96%] bg-secondary text-white rounded-[15px] resize-none pl-[22px] pr-[22px] py-[10px] text-[18px] placeholder-shown:align-middle min-h-[40px] max-h-[100px] overflow-y-scroll"
className="h-[48px] focus:outline-none w-[96%] bg-secondary text-white rounded-[15px] resize-none pl-[22px] pr-[22px] py-[10px] text-[18px] placeholder-shown:align-middle min-h-[40px] max-h-[100px] overflow-y-auto"
ref={inputRef}
value={message}
onChange={handleTypingStatus}
Expand Down
Loading