Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
width: 70vw;
display: flex;
justify-content: end;
z-index: 3;
// Bỏ sự kiện cho toàn container
pointer-events: none;

.chat-box {
pointer-events: auto; // Chỉ phần này thao tác được
z-index: 3;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
:host {
position: absolute;
bottom: 3px;
right: 3px;
width: 70vw;
display: flex;
justify-content: end;
z-index: 3;

// Host mặc định click xuyên qua
pointer-events: none;
}

.chat-box {
max-width: fit-content;
display: flex;
Expand All @@ -8,7 +21,7 @@
transition: all 0.3s ease;
position: relative;
border-radius: 12px;

pointer-events: auto; // chỉ cho phép thao tác trong vùng chat-box
&:not(.expanded) {
// sau 3s mới mờ dần
transition: opacity 0.3s ease 3s;
Expand Down