diff --git a/src/pages/common/components/ChatComponent/ChatComponent.module.scss b/src/pages/common/components/ChatComponent/ChatComponent.module.scss index 69b30c903e..a6b857552c 100644 --- a/src/pages/common/components/ChatComponent/ChatComponent.module.scss +++ b/src/pages/common/components/ChatComponent/ChatComponent.module.scss @@ -18,7 +18,12 @@ overscroll-behavior: contain; display: flex; flex-direction: column-reverse; - padding: 0.5rem 2rem var(--chat-input-wrapper-height) 2rem; + padding: 0.5rem 2rem 0 2rem; + margin-bottom: var(--chat-input-wrapper-height); + + @include big-phone { + margin-bottom: 0; + } } .emptyChat { diff --git a/src/pages/common/components/ChatComponent/ChatComponent.tsx b/src/pages/common/components/ChatComponent/ChatComponent.tsx index d0c3b30add..b5f881624c 100644 --- a/src/pages/common/components/ChatComponent/ChatComponent.tsx +++ b/src/pages/common/components/ChatComponent/ChatComponent.tsx @@ -183,7 +183,7 @@ export default function ChatComponent({ const chatWrapperId = useMemo(() => `chat-wrapper-${uuidv4()}`, []); const chatInputWrapperRef = useRef(null); const chatContainerRef = useRef(null); - const [isScrolling, setScrolling] = useState(false); + const [isScrolling, setIsScrolling] = useState(false); const chatContentContextValue: ChatContentData = useMemo( () => ({ isScrolling, @@ -603,11 +603,11 @@ export default function ChatComponent({ useEffect(() => { const deactivateScrollingFlag = debounce(() => { - setScrolling(false); + setIsScrolling(false); }, 300); function handleScroll() { - setScrolling(true); + setIsScrolling(true); deactivateScrollingFlag(); } diff --git a/src/pages/commonFeed/components/FeedLayout/components/MobileChat/MobileChat.module.scss b/src/pages/commonFeed/components/FeedLayout/components/MobileChat/MobileChat.module.scss index 34d7a6a3fc..b326d84cff 100644 --- a/src/pages/commonFeed/components/FeedLayout/components/MobileChat/MobileChat.module.scss +++ b/src/pages/commonFeed/components/FeedLayout/components/MobileChat/MobileChat.module.scss @@ -1,6 +1,8 @@ @import "../../../../../../constants"; .modal { + height: 90vh; + .modalHeaderWrapper { padding: 0;