Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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 src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const technologies = [

export default function Home() {
{
/* Services Boxes */
/* Services Boxes */
}
const solutions = [
{
Expand Down
8 changes: 6 additions & 2 deletions src/components/chatbot/chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,13 @@ const ChatWidget = () => {
const [isCoding, setIsCoding] = useState(false);
const { contextMessage } = useContext(ChatContext);

const screenWidth = typeof window !== "undefined" ? window.innerWidth : 1024;

useEffect(() => {
setOpen(true);
setUserMessage(contextMessage);
if (screenWidth > 640) {
setOpen(true);
setUserMessage(contextMessage);
}
}, [contextMessage]);

const SUGGESTED_MESSAGE = "I need help";
Expand Down
12 changes: 12 additions & 0 deletions src/components/layout/HeroChat.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@
}
}

@media screen and (max-width: 769px) {
.prompts {
& button {
font-size: 12px;
}
}

.textarea {
font-size: 14px;
}
}

.send {
width: 36px;
height: 36px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/HeroChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function HeroChat() {

<div className={styles.buttons}>
<div className={styles.prompts}>
<button onClick={() => handleBtnPrompt(promptMsgNoon)}>
<button onClick={() => handleBtnPrompt(promptMsgNoon)} className="">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
Expand Down