fix user UI 5

This commit is contained in:
TronoSfera 2026-03-02 23:18:32 +03:00
parent 7283a9b655
commit 24df50e68a
2 changed files with 29 additions and 1 deletions

View file

@ -25,6 +25,24 @@
.client-title-row h1 {
margin: 0;
display: inline-flex;
align-items: center;
gap: 0.4rem;
flex-wrap: wrap;
}
.client-title-separator {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.55em;
line-height: 0.8;
color: #e2b370;
transform: translateY(-0.02em);
}
.client-title-user {
color: #eaf2ff;
}
.client-section {

View file

@ -909,6 +909,10 @@ import { detectAttachmentPreviewKind, fmtShortDateTime, statusLabel } from "./ad
}, [loadMyRequests, setPageStatus]);
const summary = requestModal.requestData || null;
const viewerFullName = useMemo(() => {
const fullName = String(requestModal.requestData?.client_name || "").trim();
return fullName || "Клиент";
}, [requestModal.requestData?.client_name]);
const hasAnyUnreadUpdates = useMemo(
() => requestsList.some((row) => Number(row?.viewer_unread_total || 0) > 0 || Boolean(row?.client_has_unread_updates)),
[requestsList]
@ -921,7 +925,13 @@ import { detectAttachmentPreviewKind, fmtShortDateTime, statusLabel } from "./ad
<div>
<div className="client-title-row">
<img className="brand-mark" src="/brand-mark.svg" alt="" width="24" height="24" />
<h1>Личный кабинет * Представление клиента</h1>
<h1>
<span>Личный кабинет</span>
<span className="client-title-separator" aria-hidden="true">
</span>
<span className="client-title-user">{viewerFullName}</span>
</h1>
</div>
<p className="muted">Мы рады помочь Вам</p>
</div>