Улучшить UI регистрации и связанные сценарии

This commit is contained in:
AidarKC
2026-11-08 18:04:06 +03:00
parent 9405f28525
commit 4068465ee6
66 changed files with 842 additions and 221 deletions
+5 -5
View File
@@ -146,7 +146,7 @@ function createChatHeaderParts(login, navigate) {
const relation = chatRelationLabel(currentPeer?.relationType);
// Статус аккаунта, а не «в сети»: присутствие сервер не сообщает, выдумывать его нельзя
const shining = String(currentPeer?.shineStatus || '').toLowerCase() === 'shining' ? '✧ сияющий аккаунт' : '';
metaEl.textContent = [fullName ? `@${cleanLogin}` : '', shining, relation].filter(Boolean).join(' · ');
metaEl.textContent = [fullName ? cleanLogin : '', shining, relation].filter(Boolean).join(' · ');
metaEl.hidden = !metaEl.textContent;
const avatar = renderUserAvatar({
login: cleanLogin,
@@ -552,7 +552,7 @@ async function openForwardMessageDialog({ message, sourceChatId = '', onConfirm
name.textContent = fullName || item.peerLogin;
const login = document.createElement('span');
login.className = 'meta-muted';
login.textContent = `@${item.peerLogin}`;
login.textContent = item.peerLogin;
copy.append(name, login);
const arrow = document.createElement('span');
arrow.className = 'dm-forward-chat-arrow';
@@ -577,7 +577,7 @@ async function openForwardMessageDialog({ message, sourceChatId = '', onConfirm
recipientName.textContent = fullName || item.peerLogin;
const recipientLogin = document.createElement('div');
recipientLogin.className = 'meta-muted';
recipientLogin.textContent = `@${item.peerLogin}`;
recipientLogin.textContent = item.peerLogin;
recipientCopy.append(recipientName, recipientLogin);
recipient.append(recipientCopy);
@@ -610,7 +610,7 @@ async function openForwardMessageDialog({ message, sourceChatId = '', onConfirm
try {
await onConfirm?.(item.peerLogin);
close();
showToast(`Сообщение переслано в чат @${item.peerLogin}`, { timeoutMs: 1500 });
showToast(`Сообщение переслано в чат ${item.peerLogin}`, { timeoutMs: 1500 });
} catch (error) {
confirm.disabled = false;
back.disabled = false;
@@ -809,7 +809,7 @@ function openConfirmContactModal(targetLogin = '') {
<div class="modal" id="contact-confirm-modal">
<div class="modal-card stack">
<h3 class="modal-title">Добавить собеседника</h3>
<p class="meta-muted">Добавить пользователя @${targetLogin} в контакты?</p>
<p class="meta-muted">Добавить пользователя ${targetLogin} в контакты?</p>
<div class="form-actions-grid">
<button class="secondary-btn" type="button" id="contact-confirm-no">Нет</button>
<button class="primary-btn" type="button" id="contact-confirm-yes">Да</button>