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
3 changes: 3 additions & 0 deletions extensions/chat-bubble/assets/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
}

@media (max-width: 480px) {
.shop-ai-chat-container.chat-open .shop-ai-chat-bubble {
display: none;
}
.shop-ai-chat-bubble {
width: 50px;
height: 50px;
Expand Down
6 changes: 4 additions & 2 deletions extensions/chat-bubble/assets/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@
* Toggle chat window visibility
*/
toggleChatWindow: function() {
const { chatWindow, chatInput } = this.elements;
const { chatWindow, chatInput,container } = this.elements;

chatWindow.classList.toggle('active');
container.classList.toggle("chat-open"); // ✅ added

if (chatWindow.classList.contains('active')) {
// On mobile, prevent body scrolling and delay focus
Expand All @@ -138,9 +139,10 @@
* Close chat window
*/
closeChatWindow: function() {
const { chatWindow, chatInput } = this.elements;
const { chatWindow, chatInput ,container} = this.elements;

chatWindow.classList.remove('active');
container.classList.remove("chat-open"); // ✅ added

// On mobile, blur input to hide keyboard and enable body scrolling
if (this.isMobile) {
Expand Down