Загружаем сообщения...
diff --git a/backend/static/css/components/navbar.css b/backend/static/css/components/navbar.css index c3c37229..28186cea 100644 --- a/backend/static/css/components/navbar.css +++ b/backend/static/css/components/navbar.css @@ -195,5 +195,19 @@ body { padding-bottom: 60px; } + + /* Скрыть bottom navbar на странице чата - композер заменяет навигацию */ + .chat-container ~ .bottom-navbar, + .chat-page ~ .bottom-navbar, + body:has(.chat-container) .bottom-navbar, + body:has(.chat-page) .bottom-navbar { + display: none; + } + + /* Убрать padding, когда navbar скрыт */ + body:has(.chat-container), + body:has(.chat-page) { + padding-bottom: 0; + } } diff --git a/backend/static/css/components/page-header.css b/backend/static/css/components/page-header.css index 76777b22..5308650f 100644 --- a/backend/static/css/components/page-header.css +++ b/backend/static/css/components/page-header.css @@ -75,6 +75,48 @@ z-index: 1; } +/* ===== CHAT AVATAR WITH TYPE BADGE ===== */ +.chat-avatar-wrapper { + position: relative; + width: 48px; + height: 48px; + flex-shrink: 0; +} + +.chat-avatar { + width: 100%; + height: 100%; + border-radius: 12px; + object-fit: cover; + display: block; + border: 1px solid var(--bs-border-color); +} + +.chat-type-badge { + position: absolute; + bottom: -2px; + right: -2px; + width: 20px; + height: 20px; + border-radius: 50%; + background: var(--bs-primary); + color: white; + display: flex; + align-items: center; + justify-content: center; + font-size: 10px; + border: 2px solid var(--bs-body-bg); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.chat-type-badge i { + line-height: 1; +} + +[data-bs-theme="dark"] .chat-type-badge { + border-color: var(--bs-body-bg); +} + /* При скролле - более выраженный фон */ .page-header.scrolled { background: linear-gradient( @@ -88,6 +130,55 @@ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); } +/* ===== TOP BAR (заголовок + действия) ===== */ +.page-header-top { + display: flex; + align-items: center; + justify-content: space-between; + gap: var(--space-2); + width: 100%; +} + +.page-header-title { + display: flex; + align-items: center; + gap: var(--space-2); + flex: 1; + min-width: 0; +} + +.page-header-title h1 { + font-size: 1.5rem; + font-weight: 700; + margin: 0; + color: var(--bs-body-color); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.page-header-title i { + font-size: 1.75rem; + flex-shrink: 0; +} + +.page-header-actions { + display: flex; + align-items: center; + gap: var(--space-1); + flex-shrink: 0; +} + +@media (max-width: 767.98px) { + .page-header-title h1 { + font-size: 1.25rem; + } + + .page-header-title i { + font-size: 1.5rem; + } +} + /* ===== ЗАГОЛОВОК ===== */ .page-title { font-weight: 800; diff --git a/backend/templates/communications/chat_detail.html b/backend/templates/communications/chat_detail.html index f971ee60..5efd0f6c 100644 --- a/backend/templates/communications/chat_detail.html +++ b/backend/templates/communications/chat_detail.html @@ -5,6 +5,8 @@ {% block title %}Чат{% endblock %} {% block extra_css %} + + @@ -12,74 +14,91 @@ {% endblock %} {% block content %} -
Загружаем сообщения...