mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
pad_editbar: Convert snake case to camel case
This commit is contained in:
parent
5478d2ce60
commit
4a1f21ce34
1 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue