Skip to content

Commit

Permalink
Use background-size to contain content
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Dec 4, 2024
1 parent 99c151c commit 8e7494a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/public/js/pimcore/perspective/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pimcore.bundle.perspectiveeditor.PerspectiveViewHelper = class {
margin: '10 0 0 10',
listeners: {
"afterrender": function (el) {
el.inputEl.applyStyles("background:url(" + el.getValue() + ") right center no-repeat;");
el.inputEl.applyStyles("background:url(" + el.getValue() + ") right center no-repeat; background-size:contain;");
},
change: function(field, newValue) {

Expand Down

0 comments on commit 8e7494a

Please sign in to comment.