Skip to content

Commit c624f5e

Browse files
authored
Merge pull request #577 from Khushi5155/bug/allign-bot
Fix alignment of Chatbot & Back-to-Top buttons
2 parents 0469bd9 + b40ed6f commit c624f5e

File tree

1 file changed

+44
-18
lines changed

1 file changed

+44
-18
lines changed

home.html

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -939,32 +939,58 @@ <h3>Drag & Drop to Upload File</h3>
939939
</div>
940940

941941
<style>
942-
/* Back to Top Button Styles */
942+
/* Back to Top Button */
943943
#backToTop {
944944
height: 50px;
945945
width: 50px;
946-
position: fixed;
947-
bottom: 80px;
948-
right: 25px;
949-
z-index: 998;
950-
background: linear-gradient(135deg,#0077b5 ,#4facfe );
951-
color: white;
952-
border: none;
953-
border-radius: 50%;
954-
padding: 15px;
955-
font-size: 18px;
956-
cursor: pointer;
957-
display: none;
958-
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
959-
transition: transform 0.3s ease, opacity 0.3s ease;
946+
position: fixed;
947+
bottom: 20px; /* keep same baseline as chatbot */
948+
right: 90px; /* push left so chatbot sits on the edge */
949+
z-index: 998;
950+
background: linear-gradient(135deg, #0077b5, #4facfe);
951+
color: white;
952+
border: none;
953+
border-radius: 50%;
954+
padding: 15px;
955+
font-size: 18px;
956+
cursor: pointer;
957+
display: none;
958+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
959+
transition: transform 0.3s ease, opacity 0.3s ease;
960960
}
961961

962962
#backToTop:hover {
963-
transform: scale(1.1);
964-
opacity: 0.9;
965-
box-shadow: rgba(0,0,0,0.8);
963+
transform: scale(1.1);
964+
opacity: 0.9;
965+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
966+
}
967+
968+
/* Chatbot bubble button */
969+
button#chatbase-bubble-button {
970+
position: fixed !important;
971+
bottom: 20px !important; /* same baseline */
972+
right: 20px !important; /* chatbot stays at right corner */
973+
width: 55px !important;
974+
height: 55px !important;
975+
border-radius: 50% !important;
976+
z-index: 2147483647 !important;
977+
display: flex !important;
978+
align-items: center !important;
979+
justify-content: center !important;
966980
}
967981

982+
button#chatbase-bubble-button svg {
983+
width: 28px !important;
984+
height: 28px !important;
985+
}
986+
987+
/* Chat window alignment */
988+
#chatbase-bubble-window {
989+
z-index: 2147483647 !important;
990+
}
991+
992+
993+
968994
@media (max-width: 600px) {
969995
#backToTop {
970996
padding: 12px;

0 commit comments

Comments
 (0)