Hello @Kobber,
Thanks for writing in! There isn’t an option to set the background size or object fit in the Toggle. What you can do is to insert an inline css in your Modal element, Modal > Customize > Element CSS and add the following:
$el.x-anchor .x-graphic {
max-width: 100%;
}
The code above serves as an example code. Feel free to modify it when needed. Please note that custom coding is beyond the scope of our support. You will have to maintain any custom coding to make sure that it will still work after any updates or does not create any issues or incompatibility in the future.
Kindly let us know how it goes.