Blender Studio pull request - Version 2.2.0 update #104394
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user