From ed2c9abba5f37110c4de9d947e11d4f767782f7a Mon Sep 17 00:00:00 2001 From: FabioL <1647128+loviuz@users.noreply.github.com> Date: Fri, 17 May 2024 13:23:34 +0200 Subject: [PATCH] Fix sidebar --- assets/src/css/style.css | 5 +++-- assets/src/js/base/sidebar.js | 2 +- editor.php | 15 ++++++++------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/assets/src/css/style.css b/assets/src/css/style.css index bf3cf3bcf..500d44e5d 100755 --- a/assets/src/css/style.css +++ b/assets/src/css/style.css @@ -304,6 +304,7 @@ span.form-control { } #pulsanti { + position: sticky; top: 0; padding: 6px; z-index: 1; @@ -1601,13 +1602,13 @@ kbd{ @media screen and (min-width: 1140px) { .with-control-sidebar { - margin-right: 150px; + margin-right: 200px; } .control-sidebar-open { right: 0; display: block !important; - width: 150px !important; + width: 200px !important; } .control-sidebar.control-sidebar-open, diff --git a/assets/src/js/base/sidebar.js b/assets/src/js/base/sidebar.js index 63a73894a..3c48a697c 100644 --- a/assets/src/js/base/sidebar.js +++ b/assets/src/js/base/sidebar.js @@ -58,7 +58,7 @@ $(document).ready(function () { // Gestione click sul pulsante per il toggle pluginToggle.on("click", function () { - $("aside.content-wrapper, .main-footer").toggleClass("with-control-sidebar"); + $("aside.content-sidebar, section.content, .main-footer").toggleClass("with-control-sidebar"); toggleControlSidebar(); }); diff --git a/editor.php b/editor.php index cf782b027..c96267903 100755 --- a/editor.php +++ b/editor.php @@ -108,9 +108,9 @@ if (empty($record) || !$has_access) { echo ' -