From 60141b78f074807a4b8278ce2c9ae88f32a7ab71 Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Tue, 2 Jun 2026 11:22:46 +0330 Subject: [PATCH] =?UTF-8?q?fix:=20cropper=20modal=20visible=20on=20load=20?= =?UTF-8?q?=E2=80=94=20add=20.cropper-overlay.hidden=20CSS=20rule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The .hidden class only covered .modal-overlay and .fm-overlay. Without the rule, display:flex on .cropper-overlay overrode .hidden and the modal showed immediately on every page load. Co-Authored-By: Claude Sonnet 4.5 --- DrSousan.Api/wwwroot/admin/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DrSousan.Api/wwwroot/admin/index.html b/DrSousan.Api/wwwroot/admin/index.html index fe92bf1..bd49f24 100644 --- a/DrSousan.Api/wwwroot/admin/index.html +++ b/DrSousan.Api/wwwroot/admin/index.html @@ -164,7 +164,7 @@ tr:hover td{background:#FAFBFC} /* ── Modal ── */ .modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:200;display:flex;align-items:center;justify-content:center;padding:1rem} -.modal-overlay.hidden,.fm-overlay.hidden{display:none} +.modal-overlay.hidden,.fm-overlay.hidden,.cropper-overlay.hidden{display:none} .modal{background:var(--white);border-radius:16px;width:100%;max-width:720px;max-height:90vh;overflow-y:auto} .modal-header{padding:1.2rem 1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--white);z-index:1} .modal-title{font-size:1rem;font-weight:600}