brand(crm): дашборд-заголовки и поиск без эмодзи

This commit is contained in:
wasrusgen 2026-06-03 16:50:40 +03:00
parent d704bd84ef
commit 25c785f520

View File

@ -403,7 +403,7 @@ function renderDashboard(){
if(!projects.length)return head+'<div class="empty">Создайте первого клиента</div>';
const arrow=k=>ui.clientSort===k?(dir<0?' ':' '):'';
const bar=`<div style="display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px">
<input id="clientSearch" value="${esc(ui.clientSearch||'')}" oninput="setClientSearch(this.value)" placeholder="🔍 Поиск по имени или нише…" style="flex:1;min-width:170px;border:1.5px solid var(--border);border-radius:8px;padding:7px 11px;font-size:13px;font-family:Inter">
<input id="clientSearch" value="${esc(ui.clientSearch||'')}" oninput="setClientSearch(this.value)" placeholder="Поиск по имени или нише…" style="flex:1;min-width:170px;border:1.5px solid var(--border);border-radius:8px;padding:7px 11px;font-size:13px;font-family:Inter">
<span style="font-size:11px;color:var(--muted)">Сортировка:</span>
${[['name','Имя'],['amount','Сумма'],['stage','Этап'],['status','Статус']].map(([k,n])=>`<button class="fchip ${ui.clientSort===k?'on':''}" onclick="setClientSort('${k}')">${n}${arrow(k)}</button>`).join('')}
</div>`;
@ -473,7 +473,7 @@ function renderRevenueChart(){
const MN=["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"];
const lbl=k=>{const[y,m]=k.split("-");return MN[+m-1]+" "+y.slice(2)};
const totalRev=keys.reduce((s,k)=>s+months[k],0);
const head=secHead('revenue',`📈 Выручка по месяцам · ${money(totalRev)}`);
const head=secHead('revenue',`${ic('trend',16)} Выручка по месяцам · ${money(totalRev)}`);
if(ui.collapsed.revenue)return head;
return head+`<div class="blk" style="padding:14px 16px;margin-bottom:14px"><div style="display:flex;align-items:flex-end;justify-content:flex-start;gap:18px;height:104px">${keys.map(k=>`<div style="flex:0 0 56px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%"><div style="font-size:11px;font-weight:700;color:#047857;margin-bottom:4px">${(months[k]/1000).toFixed(0)}к</div><div style="width:100%;background:linear-gradient(180deg,#10B981,#047857);border-radius:6px 6px 0 0;height:${Math.max(8,months[k]/max*100)}%"></div><div style="font-size:11px;color:var(--muted);margin-top:6px">${lbl(k)}</div></div>`).join("")}</div></div>`;
}