File tree Expand file tree Collapse file tree 1 file changed +21
-14
lines changed
docs/.vuepress/components Expand file tree Collapse file tree 1 file changed +21
-14
lines changed Original file line number Diff line number Diff line change 30
30
</button >
31
31
32
32
<div v-if =" !showChat" class =" highlight-container" >
33
- <div class =" tooltip-text" ><b >Need help?</b ><br >I'm an AI chatbot, trained to answer all your questions.</div >
33
+ <div class =" tooltip-text" >
34
+ <div class =" tooltip-title" ><b >Need help?</b ></div >
35
+ <div class =" tooltip-subtitle" >I'm an AI chatbot, trained to answer all your questions.</div >
36
+ </div >
34
37
</div >
35
38
</div >
36
39
@@ -195,11 +198,10 @@ mobile-breakpoint = 768px
195
198
.highlight-container {
196
199
position : absolute ;
197
200
bottom : calc (100% + 15px );
198
- left : 50% ;
199
- transform : translateX (- 35% );
201
+ right : 0 ;
200
202
display : flex ;
201
203
flex-direction : column ;
202
- align-items : center ;
204
+ align-items : flex-end ;
203
205
pointer-events : none ;
204
206
z-index : 10001 ;
205
207
max-width : 90vw ;
@@ -214,15 +216,20 @@ mobile-breakpoint = 768px
214
216
animation : float 3s ease-in-out infinite ;
215
217
position : relative ;
216
218
text-align : right ;
217
- white-space : normal ;
218
219
font-weight : 500 ;
219
220
box-shadow : 0 0 15px $primary-color ;
220
- max-width : 250px ;
221
- min-width : 200px ;
222
221
overflow : visible ;
223
222
text-overflow : clip ;
224
223
}
225
224
225
+ .tooltip-title {
226
+ margin-bottom : 4px ;
227
+ }
228
+
229
+ .tooltip-subtitle {
230
+ white-space : nowrap ;
231
+ }
232
+
226
233
.chat-container {
227
234
position : fixed
228
235
border-radius : $border-radius
@@ -360,10 +367,10 @@ mobile-breakpoint = 768px
360
367
361
368
@keyframes float {
362
369
0% , 100% {
363
- transform : translateY (0 ) translateX ( - 50 % )
370
+ transform : translateY (0 )
364
371
}
365
372
50% {
366
- transform : translateY (- 4px ) translateX ( - 50 % )
373
+ transform : translateY (- 4px )
367
374
}
368
375
}
369
376
@@ -383,17 +390,17 @@ mobile-breakpoint = 768px
383
390
384
391
.highlight-container {
385
392
bottom : calc (100% + 15px )
386
- right : auto
387
- left : 50%
388
- transform : translateX (- 40% )
393
+ right : 0
389
394
}
390
395
391
396
.tooltip-text {
392
397
font-size : 0.9rem ; /* Adjust this value to change the tooltip text size on mobile devices */
393
398
padding : 10px 16px ;
394
- white-space : normal ;
395
399
max-width : 90vw ;
396
- min-width : 180px ;
400
+ }
401
+
402
+ .tooltip-subtitle {
403
+ white-space : nowrap ;
397
404
}
398
405
}
399
406
</style >
You can’t perform that action at this time.
0 commit comments