mirror of
https://github.com/TronoSfera/Law.git
synced 2026-05-18 10:03:45 +03:00
fix user UI 5
This commit is contained in:
parent
7283a9b655
commit
24df50e68a
2 changed files with 29 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue