mirror of
https://github.com/Heretek-AI/heretek-control-core.git
synced 2026-10-12 02:03:55 +00:00
fix(layout): eliminate horizontal overflow and admin sidebar drift
- Set display: none on closed emcp-notif-drawer to remove it from layout calculation - Remove backdrop-filter containing-block trap on .emcp-appbar - Eliminate legacy negative margins on .elementor-mcp-stats - Enforce overflow-x: hidden / clip across html, body, #wpwrap, and #wpcontent - Normalize #wpbody-content to float: none and width: auto - Bump EMCP_TOOLS_VERSION to 3.14.4
This commit is contained in:
+19
-10
@@ -88,11 +88,14 @@
|
||||
* Page Layout & Shell (Heretek Obsidian Void Canvas)
|
||||
* ========================================================================= */
|
||||
|
||||
html:has(.elementor-mcp-admin),
|
||||
body.emcp-admin-page,
|
||||
body.emcp-theme-dark,
|
||||
body:has(.elementor-mcp-admin) {
|
||||
background: #09090b !important;
|
||||
color: #f1f1f5 !important;
|
||||
overflow-x: hidden !important;
|
||||
max-width: 100vw;
|
||||
}
|
||||
|
||||
body.emcp-admin-page #wpwrap,
|
||||
@@ -105,14 +108,17 @@ body:has(.elementor-mcp-admin) #wpbody,
|
||||
body:has(.elementor-mcp-admin) #wpbody-content {
|
||||
background: #09090b !important;
|
||||
color: #f1f1f5 !important;
|
||||
overflow-x: clip !important;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body.emcp-admin-page #wpbody-content,
|
||||
body:has(.elementor-mcp-admin) #wpbody-content {
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 40px !important;
|
||||
float: left;
|
||||
width: 100%;
|
||||
float: none !important;
|
||||
width: auto !important;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Reset WordPress core .wrap so EMCP docks flush to #wpadminbar and viewport */
|
||||
@@ -126,7 +132,8 @@ body:has(.elementor-mcp-admin) .wrap.elementor-mcp-admin,
|
||||
background: #09090b !important;
|
||||
min-height: calc(100vh - 32px);
|
||||
box-sizing: border-box;
|
||||
max-width: none;
|
||||
max-width: 100%;
|
||||
overflow-x: clip !important;
|
||||
color: var(--mcp-gray-800);
|
||||
}
|
||||
|
||||
@@ -342,7 +349,9 @@ body:has(.elementor-mcp-admin) .wrap.elementor-mcp-admin,
|
||||
padding: 16px 22px;
|
||||
background: var(--mcp-gray-50);
|
||||
border-bottom: 1px solid var(--mcp-gray-200);
|
||||
margin: 0 -20px 20px -22px;
|
||||
margin: 0 0 20px 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
@@ -2638,7 +2647,7 @@ body:has(.elementor-mcp-admin) .wrap.elementor-mcp-admin,
|
||||
|
||||
@media screen and (max-width: 782px) {
|
||||
.elementor-mcp-admin {
|
||||
margin-right: 10px;
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
.elementor-mcp-header {
|
||||
@@ -3517,7 +3526,7 @@ body.emcp-modal-open { overflow: hidden; }
|
||||
/* Full-width admin header (app bar + tab nav + Help dropdown) ---------------- */
|
||||
.elementor-mcp-admin > h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
|
||||
|
||||
.emcp-appbar { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: rgba(13, 13, 17, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: none; border-bottom: 1px solid rgba(220, 38, 38, 0.35); padding: 10px 24px; margin: 0; width: 100%; box-sizing: border-box; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
|
||||
.emcp-appbar { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #0d0d11; border-top: none; border-bottom: 1px solid rgba(220, 38, 38, 0.35); padding: 10px 24px; margin: 0; width: 100%; box-sizing: border-box; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
|
||||
.emcp-appbar-brand { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px 0; width: 40%;}
|
||||
.emcp-appbar-logo { width: 34px; height: 34px; border-radius: 6px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.6)); transition: filter 0.3s ease; }
|
||||
.emcp-appbar-logo:hover { filter: drop-shadow(0 0 14px rgba(220, 38, 38, 0.95)); }
|
||||
@@ -3549,10 +3558,10 @@ body.emcp-modal-open { overflow: hidden; }
|
||||
.emcp-notif-badge { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--mcp-danger); color: #fff; border-radius: 9px; font-size: 10px; line-height: 1; font-weight: 700; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
|
||||
.emcp-notif-badge.is-empty { display: none; }
|
||||
/* Notifications slide-in drawer (right side) + overlay. */
|
||||
.emcp-notif-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; z-index: 100000; }
|
||||
.emcp-notif.is-open .emcp-notif-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
|
||||
.emcp-notif-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 380px; max-width: 90vw; display: flex; flex-direction: column; background: #131318; border-left: 1px solid var(--mcp-gray-200); box-shadow: -8px 0 32px rgba(0,0,0,.6); transform: translateX(100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .25s ease, opacity .25s ease, visibility .25s ease; z-index: 100001; }
|
||||
.emcp-notif.is-open .emcp-notif-drawer { transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }
|
||||
.emcp-notif-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; z-index: 100000; }
|
||||
.emcp-notif.is-open .emcp-notif-overlay { display: block; opacity: 1; visibility: visible; pointer-events: auto; }
|
||||
.emcp-notif-drawer { display: none; position: fixed; top: 0; right: 0; height: 100vh; width: 380px; max-width: 90vw; flex-direction: column; background: #131318; border-left: 1px solid var(--mcp-gray-200); box-shadow: -8px 0 32px rgba(0,0,0,.6); transform: translateX(100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .25s ease, opacity .25s ease, visibility .25s ease; z-index: 100001; }
|
||||
.emcp-notif.is-open .emcp-notif-drawer { display: flex; transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }
|
||||
.emcp-notif-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; font-size: 15px; font-weight: 700; color: var(--mcp-gray-800); border-bottom: 1px solid var(--mcp-gray-200); }
|
||||
.emcp-notif-close { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; background: none; border: none; border-radius: 4px; color: var(--mcp-gray-500); cursor: pointer; }
|
||||
.emcp-notif-close:hover { background: var(--mcp-gray-100); color: var(--mcp-primary); }
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
* Plugin Name: EMCP Tools Unlocked
|
||||
* Plugin URI: https://github.com/Heretek-AI/elementor-mcp
|
||||
* Description: Community-unlocked enterprise edition of Elementor MCP Tools by Heretek AI. Exposes Elementor & WordPress as MCP tools with all 269 Pro features included free.
|
||||
* Version: 3.14.3
|
||||
* Version: 3.14.4
|
||||
* Requires at least: 6.9
|
||||
* Tested up to: 7.1
|
||||
* Requires PHP: 8.1
|
||||
@@ -161,7 +161,7 @@ if ( EMCP_Tools_Migration::is_legacy_plugin_active() ) {
|
||||
}
|
||||
|
||||
// Plugin constants.
|
||||
define( 'EMCP_TOOLS_VERSION', '3.14.3' );
|
||||
define( 'EMCP_TOOLS_VERSION', '3.14.4' );
|
||||
define( 'EMCP_TOOLS_DIR', plugin_dir_path( __FILE__ ) );
|
||||
define( 'EMCP_TOOLS_URL', plugin_dir_url( __FILE__ ) );
|
||||
define( 'EMCP_TOOLS_BASENAME', plugin_basename( __FILE__ ) );
|
||||
|
||||
Reference in New Issue
Block a user