@@ -58,14 +58,27 @@ export const injectStyledCSS = (
5858
5959 var borderRadius = parseInt ( borderRadius , 10 ) ;
6060 const buttonBorderRadius = Math . round ( borderRadius * 1.05 ) ;
61+ const chatRadius = Math . round ( borderRadius * 0.6 ) ;
6162 const formItemBorderRadius = Math . round ( borderRadius * 0.4 ) ;
6263 const formItemSmallBorderRadius = Math . round ( borderRadius * 0.25 ) ;
6364 const zIndexBase = 2147483600 ;
6465
6566 const colorStyleSheet = `
67+ .gleap-font, .gleap-font * {
68+ font-style: normal;
69+ font-variant-caps: normal;
70+ font-variant-ligatures: normal;
71+ font-variant-numeric: normal;
72+ font-variant-east-asian: normal;
73+ font-weight: normal;
74+ font-stretch: normal;
75+ font-size: 100%;
76+ line-height: 1;
77+ font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
78+ }
6679 .gleap-frame-container {
6780 right: ${ buttonX } px;
68- bottom: ${ 75 + buttonY } px;
81+ bottom: ${ 69 + buttonY } px;
6982 width: calc(100% - 40px);
7083 max-width: 400px;
7184 position: fixed;
@@ -85,7 +98,7 @@ export const injectStyledCSS = (
8598 [dir=rtl].gleap-frame-container {
8699 right: auto;
87100 left: ${ buttonX } px;
88- bottom: ${ 75 + buttonY } px;
101+ bottom: ${ 69 + buttonY } px;
89102 }
90103
91104 .gleap-frame-container--loading iframe {
@@ -201,13 +214,13 @@ export const injectStyledCSS = (
201214 .gleap-frame-container--modern-left {
202215 right: auto;
203216 left: ${ buttonX } px;
204- bottom: ${ 75 + buttonY } px;
217+ bottom: ${ 69 + buttonY } px;
205218 }
206219
207220 [dir=rtl].gleap-frame-container--modern-left {
208221 left: auto;
209222 right: ${ buttonX } px;
210- bottom: ${ 75 + buttonY } px;
223+ bottom: ${ 69 + buttonY } px;
211224 }
212225
213226 .gleap-frame-container--animate {
@@ -238,7 +251,7 @@ export const injectStyledCSS = (
238251
239252 .gleap-notification-container {
240253 position: fixed;
241- bottom: ${ 68 + buttonY } px;
254+ bottom: ${ 62 + buttonY } px;
242255 right: ${ 4 + buttonX } px;
243256 z-index: ${ zIndexBase + 30 } ;
244257 display: flex;
@@ -307,9 +320,9 @@ export const injectStyledCSS = (
307320 }
308321
309322 .gleap-notification-item img {
310- width: 30px ;
311- height: 30px ;
312- min-width: 30px ;
323+ width: 32px ;
324+ height: 32px ;
325+ min-width: 32px ;
313326 border-radius: 100%;
314327 object-fit: cover;
315328 margin-right: 8px;
@@ -319,28 +332,40 @@ export const injectStyledCSS = (
319332
320333 .gleap-notification-item-container {
321334 box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.2);
322- border-radius: ${ formItemBorderRadius } px;
323- padding: 12px 16px;
335+ border-radius: ${ chatRadius } px;
336+ border-bottom-left-radius: 0px;
337+ padding: 20px;
324338 background-color: ${ backgroundColor } ;
325339 margin-bottom: 12px;
326340 cursor: pointer;
327341 font-size: 15px;
328- font-family: sans-serif;
329342 line-height: 21px;
330343 color: ${ contrastBackgroundColor } ;
344+ position: relative;
345+ }
346+
347+ .gleap-notification-item-container::after {
348+ content: " ";
349+ position: absolute;
350+ bottom: 0px;
351+ width: 0px;
352+ height: 0px;
353+ left: -6px;
354+ border-style: solid;
355+ border-width: 0px 0px 10px 6px;
356+ border-color: transparent transparent white;
331357 }
332358
333359 .gleap-notification-item-sender {
334- font-size: 13px;
335- font-family: sans-serif;
336- color: ${ contrastBackgroundColor } ;
360+ color: ${ subTextColor } ;
361+ line-height: 20px;
337362 }
338363
339364 .gleap-notification-item-content {
340- font-size: 14px;
341- font-family: sans-serif;
342365 line-height: 20px;
343- color: ${ subTextColor } ;
366+ color: ${ contrastBackgroundColor } ;
367+ margin-top: 4px;
368+ min-width: min(200px, 50vw);
344369 }
345370
346371 .gleap-frame-container-inner {
@@ -470,8 +495,8 @@ export const injectStyledCSS = (
470495
471496 .bb-notification-bubble {
472497 position: absolute;
473- top: -4px ;
474- right: -4px ;
498+ top: -6px ;
499+ right: -6px ;
475500 min-width: 22px;
476501 padding: 0px 4px;
477502 height: 22px;
@@ -489,11 +514,11 @@ export const injectStyledCSS = (
489514 }
490515
491516 .bb-feedback-button-icon {
492- width: 60px ;
493- height: 60px ;
494- border-radius: 60px ;
517+ width: 54px ;
518+ height: 54px ;
519+ border-radius: 54px ;
495520 background-color: #485bff;
496- transition: box-shadow 0.3s ease-in-out;
521+ transition: box-shadow, transform 0.2s ease-in-out;
497522 box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.15), 0px 0px 20px rgba(0, 0, 0, 0.1);
498523 position: relative;
499524 }
@@ -569,10 +594,10 @@ export const injectStyledCSS = (
569594
570595 .bb-feedback-button .bb-logo-logo {
571596 position: absolute;
572- width: 38px ;
573- height: 38px ;
574- top: 11px ;
575- left: 11px ;
597+ width: 34px ;
598+ height: 34px ;
599+ top: 10px ;
600+ left: 10px ;
576601 object-fit: contain;
577602 animation-duration: 0.3s;
578603 animation-fill-mode: both;
@@ -581,10 +606,10 @@ export const injectStyledCSS = (
581606
582607 .bb-feedback-button .bb-logo-arrowdown {
583608 position: absolute;
584- width: 18px ;
585- height: 18px ;
586- top: 23px ;
587- left: 21px ;
609+ width: 16px ;
610+ height: 16px ;
611+ top: 19px ;
612+ left: 19px ;
588613 object-fit: contain;
589614 animation-duration: 0.3s;
590615 animation-fill-mode: both;
@@ -604,6 +629,7 @@ export const injectStyledCSS = (
604629
605630 .bb-feedback-button-icon:hover {
606631 box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25), 0px 0px 20px rgba(0, 0, 0, 0.2);
632+ transform: scale(1.1);
607633 }
608634
609635 .bb-feedback-button--open .bb-feedback-button-text {
0 commit comments