hip
This commit is contained in:
@@ -268,6 +268,9 @@
|
||||
}
|
||||
preview.src = data.url;
|
||||
|
||||
// Immediately update navbar brand logo
|
||||
if (window.updateBrandImage) window.updateBrandImage(data.url);
|
||||
|
||||
// Enable remove button
|
||||
removeBtn.disabled = false;
|
||||
removeBtn.style.cssText = 'background:rgba(220,53,69,0.15);border:1px solid rgba(220,53,69,0.4);color:#dc3545;padding:7px 16px;border-radius:4px;cursor:pointer;font-size:0.82em;font-weight:bold;transition:background 0.2s;';
|
||||
@@ -310,6 +313,9 @@
|
||||
const wrap = document.getElementById('brand-preview-wrap');
|
||||
wrap.innerHTML = '<span id="brand-preview" style="font-size:0.75em;color:#666;font-style:italic;">No image set</span>';
|
||||
|
||||
// Immediately update navbar brand logo (revert to text)
|
||||
if (window.updateBrandImage) window.updateBrandImage(null);
|
||||
|
||||
// Disable remove button
|
||||
removeBtn.disabled = true;
|
||||
removeBtn.style.cssText = 'background:rgba(220,53,69,0.05);border:1px solid rgba(220,53,69,0.15);color:#884040;padding:7px 16px;border-radius:4px;cursor:not-allowed;font-size:0.82em;font-weight:bold;';
|
||||
|
||||
Reference in New Issue
Block a user