Новые правки на сайте

This commit is contained in:
Web-serfer 2026-04-15 19:32:21 +05:00
parent 261d5db2d7
commit f6f2fb3a35
7 changed files with 106 additions and 6 deletions

View file

@ -350,10 +350,11 @@ import { COMPANY } from "@constants";
// Скрываем телефон, показываем аватар и кнопку выхода
if (phoneEl) phoneEl.style.display = 'none';
const displayName = user.name || user.email || 'Пользователь';
authSection.innerHTML = `
<div class="user-display">
<div class="user-avatar" title="${user.name || user.email}">${firstLetter}</div>
<div class="user-avatar" title="${displayName}">${firstLetter}</div>
<button class="logout-btn" id="logout-btn" title="Выйти">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>