Martechsol commited on
Commit
cc9fda7
·
1 Parent(s): 108e51d

Fixed widget alignment: corrected icon sizing, implemented CSS reset to prevent theme leaks, and ensured proper positioning

Browse files
Files changed (1) hide show
  1. static/addon.html +34 -11
static/addon.html CHANGED
@@ -18,44 +18,67 @@
18
  }
19
 
20
  #martech-chat-wrapper {
 
21
  font-family: 'Outfit', sans-serif;
 
 
 
 
 
 
 
 
22
  }
23
 
24
  /* Floating Action Button (FAB) */
25
  #martech-chat-fab {
26
  position: fixed;
27
  right: 20px;
28
- bottom: 25px;
29
- width: 80px;
30
- height: 80px;
31
  background: transparent;
32
  display: flex;
33
  align-items: center;
34
  justify-content: center;
35
  cursor: pointer;
36
- z-index: 999999;
37
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
38
  }
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  #martech-chat-fab:hover {
41
- transform: scale(1.1) rotate(5deg);
42
  }
43
 
44
  /* Chat Window Styling */
45
  #martech-chat-box {
46
  position: fixed;
47
  right: 25px;
48
- bottom: 110px;
49
- width: 420px;
50
  height: 600px;
51
  background: var(--glass-bg);
52
- backdrop-filter: blur(10px);
 
53
  border-radius: var(--radius);
54
  overflow: hidden;
55
  display: none;
56
  flex-direction: column;
57
  box-shadow: var(--shadow-lg);
58
- z-index: 999998;
59
  border: 1px solid rgba(226, 232, 240, 0.8);
60
  opacity: 0;
61
  transform: translateY(30px) scale(0.95);
@@ -225,10 +248,10 @@
225
  <div id="martech-chat-wrapper">
226
  <div id="martech-chat-fab">
227
  <!-- Animated Chatbot Icon -->
228
- <div id="chat-icon" style="width: 233px; height: 238px; display: flex; align-items: center; justify-content: center; pointer-events: none;">
229
  <dotlottie-player
230
  src="https://joedown11-chatrag.hf.space/static/bot-icon.lottie"
231
- background="transparent" speed="1" style="width: 100%; height: 100%; will-change: transform;" loop autoplay>
232
  </dotlottie-player>
233
  </div>
234
  <!-- Close Icon -->
 
18
  }
19
 
20
  #martech-chat-wrapper {
21
+ all: initial; /* Reset to prevent theme leaks */
22
  font-family: 'Outfit', sans-serif;
23
+ position: fixed;
24
+ z-index: 999999;
25
+ bottom: 0;
26
+ right: 0;
27
+ }
28
+
29
+ #martech-chat-wrapper * {
30
+ box-sizing: border-box;
31
  }
32
 
33
  /* Floating Action Button (FAB) */
34
  #martech-chat-fab {
35
  position: fixed;
36
  right: 20px;
37
+ bottom: 20px;
38
+ width: 70px;
39
+ height: 70px;
40
  background: transparent;
41
  display: flex;
42
  align-items: center;
43
  justify-content: center;
44
  cursor: pointer;
45
+ z-index: 1000000;
46
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
47
  }
48
 
49
+ #chat-icon {
50
+ width: 100%;
51
+ height: 100%;
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ }
56
+
57
+ dotlottie-player {
58
+ width: 120% !important; /* Slightly larger to fill space */
59
+ height: 120% !important;
60
+ }
61
+
62
  #martech-chat-fab:hover {
63
+ transform: scale(1.1);
64
  }
65
 
66
  /* Chat Window Styling */
67
  #martech-chat-box {
68
  position: fixed;
69
  right: 25px;
70
+ bottom: 100px;
71
+ width: 400px;
72
  height: 600px;
73
  background: var(--glass-bg);
74
+ backdrop-filter: blur(15px);
75
+ -webkit-backdrop-filter: blur(15px);
76
  border-radius: var(--radius);
77
  overflow: hidden;
78
  display: none;
79
  flex-direction: column;
80
  box-shadow: var(--shadow-lg);
81
+ z-index: 999999;
82
  border: 1px solid rgba(226, 232, 240, 0.8);
83
  opacity: 0;
84
  transform: translateY(30px) scale(0.95);
 
248
  <div id="martech-chat-wrapper">
249
  <div id="martech-chat-fab">
250
  <!-- Animated Chatbot Icon -->
251
+ <div id="chat-icon">
252
  <dotlottie-player
253
  src="https://joedown11-chatrag.hf.space/static/bot-icon.lottie"
254
+ background="transparent" speed="1" style="width: 100%; height: 100%;" loop autoplay>
255
  </dotlottie-player>
256
  </div>
257
  <!-- Close Icon -->