Extract some #floating_menubar CSS from JS

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-12-12 15:44:41 -03:00
parent 11cc53d737
commit 3360cc6a90
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
7 changed files with 17 additions and 15 deletions

View File

@ -492,3 +492,7 @@ li.fast_filter {
}
}
}
#floating_menubar {
z-index: 99;
}

View File

@ -529,3 +529,7 @@ li.fast_filter {
}
}
}
#floating_menubar {
z-index: 99;
}

View File

@ -456,3 +456,7 @@ li.fast_filter {
}
}
}
#floating_menubar {
z-index: 99;
}

View File

@ -461,3 +461,7 @@ li.fast_filter {
cursor: pointer;
}
}
#floating_menubar {
z-index: 99;
}

View File

@ -3441,13 +3441,6 @@ function floatingMenuBar () {
var left = $('html').attr('dir') === 'ltr' ? 'left' : 'right';
$('#floating_menubar')
.css('margin-' + left, $('#pma_navigation').width() + $('#pma_navigation_resizer').width())
.css(left, 0)
.css({
'position': 'fixed',
'top': 0,
'width': '100%',
'z-index': 99
})
.append($('#server-breadcrumb'))
.append($('#topmenucontainer'));

View File

@ -793,13 +793,6 @@ const ResizeHandler = function () {
// Issue #15570 : Panels on homescreen go underneath of floating menubar
$('#floating_menubar')
.css('margin-' + this.left, $('#pma_navigation').width() + $('#pma_navigation_resizer').width())
.css(this.left, 0)
.css({
'position': 'fixed',
'top': 0,
'width': '100%',
'z-index': 99
})
.append($('#server-breadcrumb'))
.append($('#topmenucontainer'));

View File

@ -1,4 +1,4 @@
<div id="floating_menubar" class="d-print-none"></div>
<div id="floating_menubar" class="w-100 position-fixed top-0 start-0 end-0 d-print-none"></div>
<nav id="server-breadcrumb" aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-navbar">
<li class="breadcrumb-item">