File tree Expand file tree Collapse file tree 2 files changed +30
-5
lines changed Expand file tree Collapse file tree 2 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 33
33
</ div >
34
34
35
35
<!-- Chat Box Area -->
36
- < div id ="chat-box-wrapper " class ="hidden max-w-sm md:max-w-xl lg:max-w-3xl fixed top-0 left-0 right-0 bottom-20 overflow-y-auto p-4 space-y-4 bg-transparent text-white z-40 transition-all duration-500 ease-in-out transform scale-0 opacity-0 " style =" max-width: 1100px;max-height: 80vh;margin: auto;margin-top: 95px;margin-bottom: 25px; " >
36
+ < div id ="chat-box-wrapper " class ="hidden max-w-sm md:max-w-xl lg:max-w-3xl fixed top-0 left-0 right-0 bottom-20 overflow-y-auto p-4 space-y-4 bg-transparent text-white z-40 transition-all duration-500 ease-in-out transform scale-0 opacity-0 ">
37
37
< div id ="chat-messages " class ="w-full verflow-y-auto scroll-smooth h-[400px] "> </ div >
38
38
</ div >
Original file line number Diff line number Diff line change @@ -26,17 +26,26 @@ body.ready #chat-box-wrapper {
26
26
transition : transform 0.4s ease-in-out;
27
27
}
28
28
# chat-messages {
29
- overflow-y : auto;
30
- max-height : 100vh ; /* atau height tetap sesuai desain */
29
+ padding : 5px ;
30
+ overflow-y : auto;
31
+ max-height : 100dvh ;
32
+ height : 100% ;
33
+ }
34
+ # chat-box-wrapper {
35
+ max-width : 900px ;
36
+ margin : auto;
37
+ margin-top : 50px ;
38
+ margin-bottom : 15px ;
39
+ overflow : hidden;
31
40
}
32
-
33
41
/* Scrollbar umum (Chrome, Edge, Safari) */
34
42
::-webkit-scrollbar {
35
- width : 8 px ;
43
+ width : 2 px ;
36
44
}
37
45
38
46
::-webkit-scrollbar-track {
39
47
background : # 1f2937 ; /* abu gelap */
48
+ border-radius : 10px ;
40
49
}
41
50
42
51
::-webkit-scrollbar-thumb {
@@ -53,3 +62,19 @@ body.ready #chat-box-wrapper {
53
62
scrollbar-width : thin;
54
63
scrollbar-color : # 4b5563 # 1f2937 ;
55
64
}
65
+
66
+ @media (max-width : 800px ) {
67
+ # chat-messages {
68
+ padding : 5px ;
69
+ overflow-y : auto;
70
+ max-height : 100dvh ;
71
+ height : 100% ;
72
+ }
73
+ # chat-box-wrapper {
74
+ max-width : 900px ;
75
+ margin : auto;
76
+ margin-top : 85px ;
77
+ margin-bottom : 15px ;
78
+ overflow : hidden;
79
+ }
80
+ }
You can’t perform that action at this time.
0 commit comments