mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-09 14:16:17 +02:00
toolbar: display the "+" icon to show all buttons only on mobile layout
Otherwise the "+" button is displayed on top of the menu_right toolbar
This commit is contained in:
parent
f768e32373
commit
ff1191d24a
@ -312,7 +312,11 @@ var padeditbar = (function()
|
||||
// reset style
|
||||
$('.toolbar').removeClass('cropped')
|
||||
var menu_left = $('.toolbar .menu_left')[0];
|
||||
if (menu_left && menu_left.scrollWidth > $('.toolbar').width()) {
|
||||
|
||||
// on mobile the menu_right get displayed at the bottom of the screen
|
||||
var isMobileLayout = $('.toolbar .menu_right').css('position') === 'fixed';
|
||||
|
||||
if (menu_left && menu_left.scrollWidth > $('.toolbar').width() && isMobileLayout) {
|
||||
$('.toolbar').addClass('cropped');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user