Powered by
How to Force Border Radius 0 on Mobile for Webchat...
# 🤝help
h
happy-garden-67581
07/01/2025, 5:54 AM
Hi all! I’m trying to set the border-radius of the Botpress webchat widget to 0 on mobile devices, but I can’t get it to work. Here’s what I’ve tried: * I added the following to the “Styles” section in the Botpress webchat admin: @media (max-width: 767px) { .bpContainer { border-radius: 0 !important; } } * I also tried increasing specificity (e.g., .bpReset .bpContainer), and using border-radius: 0px !important;. * However, the chat window still has rounded corners on mobile. * Inspecting the widget, I see the border-radius is being set via a CSS variable or a stylesheet that loads after my custom styles, so my override isn’t taking effect. Screenshots: (I’ve attached screenshots showing my custom styles and the live widget with the border-radius still present.) Question: Is there a way to force the border-radius to 0 on mobile? Is there a recommended way to override the default styles, or a config option I’m missing? If the border-radius is set via inline styles or CSS variables, is there a workaround? Thanks in advance for any help!
https://cdn.discordapp.com/attachments/1389484189962731540/1389484190151610498/Screenshot_2025-07-01_at_12.46.10_PM.jpg?ex=6864c97e&is=686377fe&hm=59554fbd854cb678201e2d6411e8dd1e57e3c2aa2458377fa2e23ff041fc508e&
https://cdn.discordapp.com/attachments/1389484189962731540/1389484190428303483/Screenshot_2025-07-01_at_12.46.26_PM.jpg?ex=6864c97e&is=686377fe&hm=650a7ead855fed18ff82c9f2c71b86071af2166d7eb7bcdd3a46bca65894efeb&
g
gentle-policeman-89141
07/01/2025, 7:55 AM
when i last tried the minimum allowed was r = 0.5
gentle-policeman-89141
07/01/2025, 7:55 AM
0 doesnt work if you check your browser logs
p
prehistoric-airplane-85682
07/01/2025, 2:15 PM
Your @media code should be placed in your website's code, not the style section of the dashboard. You should use it with .bpWebchat . Hope this helps!
Previous
Next