I would like to be able to make the icon larger so you can see the image I uploaded.
Currently you are only able to make the bubble surrounding the icon larger.
Hi @Sean_Piscitelli welcome to community
add this code to the Custom CSS field on the General tab of your AI-Chatbot widget’s settings:
[class*="ButtonBase__Overlay-sc"]{
transform: scale(1.4);
}
Hi there, @Sean_Piscitelli and welcome to the Community
@Sina, thank you so much for your help! Your code works, but it enlarges the notification badge as well.
I’ll discuss with the devs if it’s possible to change the size of the icon separately and update you tomorrow
Hi, the icon separately
[class*="injected-svg"]{
transform: scale(1.4);
}
@Sina, Unfortunately, this code didn’t work, but I’ve found the solution:
[class*="ButtonBase__ButtonIcon-sc"] {
scale: 1.4;
}
@Sean_Piscitelli Could you please test it?
Hey @Sina
Thanks for this script
It works for me soo… thank you so much!
Great, you’re always welcome
I have a related question which I think belongs to this topic too. I’ve matched size with a fellow bubble on desktop:
But the size relation is different on mobile devices:
How can I use the solution you guys provided but only have it applied to the bubble shown on mobile devices so I can match height there too? Ideally, the resizing will have the bubbles right down corner as the fixed point.
Thanks in advance!
Hi @fcweesp.nl
For mobile view, simply enter the code in the media instruction.
@media (max-width: 500px) {
your css code
}
@media (max-width: 500px) {
[class*="ButtonBase__ButtonIcon-sc"] {
scale: 1.4;
}
}
Hi @fcweesp.nl
And if you need to change the size of the whole bubble (not just the icon) on mobile, this code will work great for you
@media (max-width: 500px) {
[class*="ButtonBase__ButtonContainer"] {
scale: 1.4;
}
}
Thanks for the code snippets! I made it into this:
@media (max-width: 500px) {
[class*=“ButtonBase__ButtonContainer”] {
scale: 1.37;
bottom: 8px;
right: 10px;
}
}
It worked for the whole bubble except for the ripple effect. So, I’ve tried to apply the exact same values on the ripple class (“AnimationFrame__Frame-sc”) but only the scale got applied. Not the positional values. What needs to be done in order to also move the ripple effect with/around the button?
Hi there, @fcweesp.nl
Here is the code for changing the scale and position of the bubble and its animation on mobile:
@media (max-width: 500px) {
[class*="ButtonBase__ButtonContainer"] {
scale: 1.37;
}
[class*="AnimationFrame__Frame-sc"] {
scale: 1.37;
}
[class*='FloatingButton__FloatingButtonContainer-sc'] {
margin: 16px 20px !important;
}
}
The 1st margin value is vertical offset, and the 2nd one - horizontal.
Please check it out and let me know how it worked
Worked perfectly, thanks!
It’s my pleasure!
We’re always here to help if anything comes up