fix(цвет): кнопка «Внести» зелёная; подсказка остатка в пробном доступе про вопросы
Хозяин 21.11.2026: «почему кнопка не сменила цвет?» — речь о кнопке внесения денег в карточке клиента; теперь она зелёная (.money-btn), прочие действия остаются светлыми. Заодно подсказка у остатка в пробном доступе больше не говорит «сколько осталось на сутки»: у пробного считаются вопросы. Проверки — вычисленный цвет в браузере и текст подсказки; мутации краснеют. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -187,7 +187,7 @@ export function CustomerDrawer({ email, onClose, onDeleted, onChanged }) {
|
||||
<button type="button" disabled=${busy} onClick=${() => act('agent_access',
|
||||
{agent_access: !card.profile.agent_access}, card.profile.agent_access ? 'Доступ снят' : 'Доступ выдан')}>
|
||||
${card.profile.agent_access ? 'Снять агента' : 'Выдать агента'}</button>
|
||||
<button type="button" disabled=${busy} onClick=${topup}>Внести${card.account
|
||||
<button type="button" class="money-btn" disabled=${busy} onClick=${topup}>Внести${card.account
|
||||
? ' · ' + rub(card.account.balance_rub) : ''}</button>
|
||||
<button type="button" disabled=${busy} onClick=${exportData}>Выгрузить</button>
|
||||
<button type="button" disabled=${busy} onClick=${del}>Удалить</button>
|
||||
|
||||
@@ -113,6 +113,9 @@ tr.clickable{cursor:pointer} tr.clickable:hover td{background:#f3f6ff}
|
||||
|
||||
.actions-bar{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
|
||||
.actions-bar button{font:inherit;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer}
|
||||
/* «Внести» — денежное действие, зелёное (Хозяин 21.11.2026); прочие кнопки остаются светлыми. */
|
||||
.actions-bar button.money-btn{background:var(--money,#2d8a56);border-color:var(--money,#2d8a56);color:#fff;font-weight:600}
|
||||
.actions-bar button.money-btn:hover:not(:disabled){filter:brightness(.94)}
|
||||
.actions-bar button:disabled{opacity:.5}
|
||||
.toast{display:flex;gap:8px;align-items:center;background:#ecfdf3;border:1px solid #abefc6;color:#067647;padding:8px 10px;border-radius:8px;margin:8px 0}
|
||||
.toast button{font:inherit;border:0;background:transparent;color:#067647;text-decoration:underline;cursor:pointer}
|
||||
|
||||
Reference in New Issue
Block a user