Skip to content

Commit

Permalink
Change suggestions padding bottom in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Abou1205 committed Jul 23, 2024
1 parent 076350c commit dfe0dcf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/widgets/Chat/ChatWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ import useChat from "./useChat";
import { useEvent } from "@nucleoidai/react-event";
import { useParams } from "react-router-dom";

import { Box, useTheme } from "@mui/material";
import { Box, useMediaQuery, useTheme } from "@mui/material";
import React, { useEffect, useRef, useState } from "react";

const ChatWidget = () => {
const theme = useTheme();
const { chatId } = useParams("chatId");

const isMobile = useMediaQuery((theme) => theme.breakpoints.down("sm"));

const [codeResponse, setCodeResponse] = useState(false);
const [isItFirstVisit, setIsItFirstVisit] = useState();
const [loading, setLoading] = useState(false);
Expand Down Expand Up @@ -120,7 +122,7 @@ const ChatWidget = () => {
height: "100%",
width: "100%",
backgroundColor: theme.palette.background.paper,
paddingBottom: "10px",
paddingBottom: isMobile ? "25px" : "10px",
}}
>
<ChatDisplay
Expand Down

0 comments on commit dfe0dcf

Please sign in to comment.