Skip to content

Commit 58a6d88

Browse files
committed
fix AI layout
1 parent 4e02d31 commit 58a6d88

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/app/layouts/layout-pages/app-layout/app-layout.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
width: 70vw;
2626
display: flex;
2727
justify-content: end;
28-
z-index: 3;
2928
// Bỏ sự kiện cho toàn container
3029
pointer-events: none;
3130

3231
.chat-box {
3332
pointer-events: auto; // Chỉ phần này thao tác được
33+
z-index: 3;
3434
}
3535
}
3636
}

src/app/shared/components/fxdonad-shared/box-chat-ai/box-chat-ai.component.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
:host {
2+
position: absolute;
3+
bottom: 3px;
4+
right: 3px;
5+
width: 70vw;
6+
display: flex;
7+
justify-content: end;
8+
z-index: 3;
9+
10+
// Host mặc định click xuyên qua
11+
pointer-events: none;
12+
}
13+
114
.chat-box {
215
max-width: fit-content;
316
display: flex;
@@ -8,7 +21,7 @@
821
transition: all 0.3s ease;
922
position: relative;
1023
border-radius: 12px;
11-
24+
pointer-events: auto; // chỉ cho phép thao tác trong vùng chat-box
1225
&:not(.expanded) {
1326
// sau 3s mới mờ dần
1427
transition: opacity 0.3s ease 3s;

0 commit comments

Comments
 (0)