feat(branding): logo and system name on share and report pages, drop logo border-radius

This commit is contained in:
dev
2026-09-23 16:25:13 +03:00
parent f2d465e0c4
commit 30cf04b0cf
7 changed files with 57 additions and 5 deletions
+14 -1
View File
@@ -4,7 +4,20 @@ function loadBrand(){
return fetch('/api/public-settings').then(function(res){
return res.ok?res.json():null;
}).then(function(s){
if(s&&(s.system_name||'').trim())state.systemName=s.system_name;
if(!s)return;
if((s.system_name||'').trim())state.systemName=s.system_name;
var logo=document.getElementById('brandLogo');
if(logo&&s.system_logo){
logo.src=s.system_logo;
logo.hidden=false;
var mark=document.getElementById('brandMark');
if(mark)mark.style.display='none';
}
var name=document.getElementById('brandName');
if(name&&(s.system_name||'').trim()){
name.textContent=s.system_name;
name.hidden=false;
}
}).catch(function(){});
}