pad_editbar: Convert snake case to camel case

This commit is contained in:
Richard Hansen 2021-08-14 07:24:48 -04:00
parent 5478d2ce60
commit 4a1f21ce34

View file

@ -282,16 +282,16 @@ exports.padeditbar = new class {
// reset style // reset style
$('.toolbar').removeClass('cropped'); $('.toolbar').removeClass('cropped');
$('body').removeClass('mobile-layout'); $('body').removeClass('mobile-layout');
const menu_left = $('.toolbar .menu_left')[0]; const menuLeft = $('.toolbar .menu_left')[0];
// this is approximate, we cannot measure it because on mobile // this is approximate, we cannot measure it because on mobile
// Layout it takes the full width on the bottom of the page // Layout it takes the full width on the bottom of the page
const menuRightWidth = 280; const menuRightWidth = 280;
if (menu_left && menu_left.scrollWidth > $('.toolbar').width() - menuRightWidth || if (menuLeft && menuLeft.scrollWidth > $('.toolbar').width() - menuRightWidth ||
$('.toolbar').width() < 1000) { $('.toolbar').width() < 1000) {
$('body').addClass('mobile-layout'); $('body').addClass('mobile-layout');
} }
if (menu_left && menu_left.scrollWidth > $('.toolbar').width()) { if (menuLeft && menuLeft.scrollWidth > $('.toolbar').width()) {
$('.toolbar').addClass('cropped'); $('.toolbar').addClass('cropped');
} }
} }