Blender Studio pull request - Version 2.2.0 update #104394

Merged
Márton Lente merged 64 commits from ui/v2.2.0 into main 2024-04-08 16:32:44 +02:00
Showing only changes of commit ca4692eb30 - Show all commits

View File

@ -5,13 +5,16 @@ document.addEventListener('DOMContentLoaded', function() {
const commentInputDivHelper = document.querySelectorAll('.js-comment-input-div-helper');
commentInputDivHelper.forEach(function(item) {
// Reset item style inline max-width
item.removeAttribute('style');
// Get item width within flex container
let itemWidth = item.offsetWidth;
// Set item max-width for multi-line comments
item.style.maxWidth = itemWidth + 'px';
});
}, 2000)
}, 2000);
}
function init() {
@ -21,4 +24,7 @@ document.addEventListener('DOMContentLoaded', function() {
setCommentInputDivMaxWidth();
});
}
// Call function init
init();
});