Skip to content

Commit ccb9ea8

Browse files
update
1 parent 5178beb commit ccb9ea8

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

_includes/chat-launcher.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
</div>
3434

3535
<!-- 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">
3737
<div id="chat-messages" class="w-full verflow-y-auto scroll-smooth h-[400px]"></div>
3838
</div>

assets/css/styles.css

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,26 @@ body.ready #chat-box-wrapper {
2626
transition: transform 0.4s ease-in-out;
2727
}
2828
#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;
3140
}
32-
3341
/* Scrollbar umum (Chrome, Edge, Safari) */
3442
::-webkit-scrollbar {
35-
width: 8px;
43+
width: 2px;
3644
}
3745

3846
::-webkit-scrollbar-track {
3947
background: #1f2937; /* abu gelap */
48+
border-radius: 10px;
4049
}
4150

4251
::-webkit-scrollbar-thumb {
@@ -53,3 +62,19 @@ body.ready #chat-box-wrapper {
5362
scrollbar-width: thin;
5463
scrollbar-color: #4b5563 #1f2937;
5564
}
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+
}

0 commit comments

Comments
 (0)