mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
mvc: anchor base_apply_button on page-content-head, adjust padding for content-box-main
This commit is contained in:
parent
5787989520
commit
2edab3dbff
2 changed files with 8 additions and 7 deletions
|
|
@ -2045,14 +2045,19 @@ class UIBootgrid {
|
|||
let editAlert = this.$compatElement.attr('data-editAlert');
|
||||
if (editAlert !== undefined) {
|
||||
const $el = $("#" + editAlert);
|
||||
const height = $('.navbar').first().outerHeight() + 5;
|
||||
const rect = $(".page-content-head").first()[0].getBoundingClientRect();
|
||||
const top = $('.navbar').first().outerHeight() + 5;
|
||||
const centerX = rect.left + (rect.width / 2);
|
||||
|
||||
$el.css({
|
||||
position: "fixed",
|
||||
top: height + "px",
|
||||
right: "20px",
|
||||
top: top + "px",
|
||||
left: centerX + "px",
|
||||
right: "auto",
|
||||
zIndex: 9999,
|
||||
transform: "translateX(-50%)"
|
||||
});
|
||||
|
||||
$el.slideDown(1000, function () {
|
||||
setTimeout(function () {
|
||||
$el.not(":animated").slideUp(2000);
|
||||
|
|
|
|||
|
|
@ -6759,10 +6759,6 @@ body {
|
|||
background: #fff;
|
||||
border: 1px solid #E5E5E5;
|
||||
}
|
||||
.content-box-main {
|
||||
padding-bottom: 15px;
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
border-top: 0px;
|
||||
|
|
|
|||
Loading…
Reference in a new issue