diff --git a/elementor/templates/elementor_builder.html b/elementor/templates/elementor_builder.html index ff7096f..4289c7c 100644 --- a/elementor/templates/elementor_builder.html +++ b/elementor/templates/elementor_builder.html @@ -316,42 +316,9 @@ body.preview-mode .sidebar, body.preview-mode .inspector, body.preview-mode .topbar{display:none !important} - body.preview-mode .main{padding:0 !important} - body.preview-mode .preview-shell{ - max-width:100% !important; - border:0 !important; - border-radius:0 !important; - padding:0 !important; - margin:0 !important; - background:transparent !important; - } - body.preview-mode .apple{ - border:0 !important; - border-radius:0 !important; - min-height:100vh; - } - body.preview-mode .canvas{ - min-height:100vh !important; - padding:0 !important; - } - body.preview-mode .canvas-inner{ - gap:0 !important; - } - body.preview-mode .block{ - margin:0 !important; - border-radius:0 !important; - border-left:0 !important; - border-right:0 !important; - box-shadow:none !important; - } - body.preview-mode .restaurant-site{ - padding:0 !important; - border-radius:0 !important; - } - body.preview-mode .canvas-inner{ - width:100vw !important; - max-width:100vw !important; - } + /* Keep preview-final visually aligned with editor canvas: + only hide editor chrome, do not rewrite block/canvas geometry. */ + body.preview-mode .main{padding:10px !important} .preview-back{position:fixed;top:14px;left:14px;z-index:1200;border:1px solid #cbd5e1;background:#fff;color:#0f172a;padding:9px 14px;border-radius:999px;font-weight:700;cursor:pointer;box-shadow:0 10px 24px rgba(15,23,42,.15)} .preview-back:hover{transform:translateY(-1px)} .resize-handle{position:absolute;right:8px;bottom:8px;width:14px;height:14px;border-right:2px solid #94a3b8;border-bottom:2px solid #94a3b8;cursor:se-resize;opacity:.75}