From 09c7f8541ef37a5728d110c5cd0e7ad57e998f3488da3a68d92df65b53261b52 Mon Sep 17 00:00:00 2001 From: peradas Date: Wed, 2 Sep 2026 15:02:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D0=BD=D1=83=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=84=D0=B8=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20?= =?UTF-8?q?=D1=8D=D0=BB=D0=B5=D0=BC=D0=B5=D0=BD=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shine-UI/js/pages/user-profile-view.js | 11 +++++++---- shine-UI/styles/components.css | 11 +++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/shine-UI/js/pages/user-profile-view.js b/shine-UI/js/pages/user-profile-view.js index c3bf2b2c..94d75eff 100644 --- a/shine-UI/js/pages/user-profile-view.js +++ b/shine-UI/js/pages/user-profile-view.js @@ -189,11 +189,17 @@ export function render({ navigate, route, chrome }) { const stats = card.stats || {}; const official = card.accountRole === 'primary'; const shining = card.shineStatus === 'shining'; + const fullName = [card.firstName, card.lastName] + .map((value) => String(value || '').trim()) + .filter(Boolean) + .join(' '); const title = header.querySelector('.page-title'); if (title) title.textContent = card.login; body.innerHTML = ` + ${fullName ? `
${escapeHtml(fullName)}
` : ''} +
${metricHtml({ kind: 'primary_received', label: 'Официальный', value: stats.primaryReceivedCount, glow: official, positionClass: 'is-top-left' })} ${metricHtml({ kind: 'shine_received', label: 'Сияющий', value: stats.shineReceivedCount, glow: shining, positionClass: 'is-top-right' })} @@ -296,10 +302,7 @@ export function render({ navigate, route, chrome }) { const action = actionButton?.dataset.profileAction; if (action === 'add') { if (!addMenu) return; - const willOpen = addMenu.hidden; - addMenu.hidden = !willOpen; - actionButton.setAttribute('aria-expanded', willOpen ? 'true' : 'false'); - if (willOpen && selfLogin) void ensureRelationFlags().catch(() => {}); + navigate(`SHiNE/${encodeURIComponent(card.login)}/manage`); return; } if (action === 'links') { diff --git a/shine-UI/styles/components.css b/shine-UI/styles/components.css index eacccf5b..81cafbb7 100644 --- a/shine-UI/styles/components.css +++ b/shine-UI/styles/components.css @@ -9910,6 +9910,17 @@ body.chat-topbar-overlay .composer-slot > * { padding: 0 0 10px; } +.user-profile-full-name { + width: min(88%, 340px); + margin: 0 auto clamp(8px, 1.4vh, 12px); + color: rgba(239, 246, 255, 0.94); + font-size: clamp(16px, 4.5vw, 19px); + font-weight: 700; + line-height: 1.2; + text-align: center; + overflow-wrap: anywhere; +} + .user-profile-hero { display: grid; grid-template-columns: minmax(0, 1fr) var(--user-profile-avatar-size) minmax(0, 1fr);