From 1e51df406b563b33691f94928e37166067359a8b Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Tue, 2 Jun 2026 18:15:51 +0330 Subject: [PATCH] fix: cropper mime bug + loadSiteIdentity crash + logo|name header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. applyCrop() — mime variable was declared INSIDE toBlob callback but used as an argument to toBlob() (outer scope) → ReferenceError. Fix: declare _mime, _quality, _ext BEFORE out.toBlob() call. 2. loadSiteIdentity() — crashed when identity section had no rows (data was null/non-array). Fix: safe Array.isArray guard + catch. 3. Header logo: show logo image + | + site name side by side when logo is configured (was showing one OR the other). Co-Authored-By: Claude Sonnet 4.5 --- DrSousan.Api/Pages/Shared/_Layout.cshtml | 10 ++++------ DrSousan.Api/wwwroot/admin/index.html | 21 +++++++++++---------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/DrSousan.Api/Pages/Shared/_Layout.cshtml b/DrSousan.Api/Pages/Shared/_Layout.cshtml index 4aeb688..9157ab0 100644 --- a/DrSousan.Api/Pages/Shared/_Layout.cshtml +++ b/DrSousan.Api/Pages/Shared/_Layout.cshtml @@ -139,15 +139,13 @@
-