фикс
This commit is contained in:
parent
04330f6c2d
commit
67e4bf465b
@ -2,27 +2,36 @@
|
||||
<div class="admin-conversation-detail">
|
||||
<div class="header-controls">
|
||||
<button @click="goBack" class="back-btn">
|
||||
« Назад к списку диалогов
|
||||
<i class="bi-arrow-left"></i>
|
||||
<span>Назад к списку диалогов</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div v-if="loading" class="loading-indicator">
|
||||
Загрузка сообщений...
|
||||
<div class="loading-spinner"></div>
|
||||
<span>Загрузка диалога...</span>
|
||||
</div>
|
||||
|
||||
<div v-if="error" class="error-message">
|
||||
<i class="bi-exclamation-triangle"></i>
|
||||
{{ error }}
|
||||
</div>
|
||||
|
||||
<div v-if="conversation && !loading" class="conversation-container">
|
||||
<h2>Просмотр диалога</h2>
|
||||
<h2>
|
||||
<i class="bi-chat-text"></i>
|
||||
<span>Просмотр диалога</span>
|
||||
</h2>
|
||||
|
||||
<div class="conversation-info">
|
||||
<h3>Информация о диалоге</h3>
|
||||
<h3>
|
||||
<i class="bi-info-circle"></i>
|
||||
<span>Информация о диалоге</span>
|
||||
</h3>
|
||||
<div class="info-grid">
|
||||
<div class="info-item">
|
||||
<div class="info-label">ID диалога</div>
|
||||
<div class="info-value">{{ conversation._id }}</div>
|
||||
<div class="info-value id-value">{{ conversation._id }}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<div class="info-label">Дата создания</div>
|
||||
@ -36,7 +45,10 @@
|
||||
</div>
|
||||
|
||||
<div class="participants-section">
|
||||
<h3>Участники диалога</h3>
|
||||
<h3>
|
||||
<i class="bi-people"></i>
|
||||
<span>Участники диалога</span>
|
||||
</h3>
|
||||
<div class="participants-list">
|
||||
<div
|
||||
v-for="participant in conversation.participants"
|
||||
@ -54,7 +66,8 @@
|
||||
<div class="participant-name">{{ participant.name }}</div>
|
||||
<div class="participant-email">{{ participant.email }}</div>
|
||||
<button @click="viewUser(participant._id)" class="btn user-btn">
|
||||
Профиль пользователя
|
||||
<i class="bi-person"></i>
|
||||
<span>Профиль пользователя</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -62,14 +75,19 @@
|
||||
</div>
|
||||
|
||||
<div class="messages-section">
|
||||
<h3>История сообщений</h3>
|
||||
<h3>
|
||||
<i class="bi-chat-dots"></i>
|
||||
<span>История сообщений</span>
|
||||
</h3>
|
||||
|
||||
<div v-if="loadingMessages" class="loading-messages">
|
||||
Загрузка сообщений...
|
||||
<div class="loading-spinner small"></div>
|
||||
<span>Загрузка сообщений...</span>
|
||||
</div>
|
||||
|
||||
<div v-else-if="messages.length === 0" class="no-messages">
|
||||
В диалоге нет сообщений
|
||||
<i class="bi-chat-slash"></i>
|
||||
<p>В диалоге нет сообщений</p>
|
||||
</div>
|
||||
|
||||
<div v-else class="messages-list">
|
||||
@ -95,21 +113,23 @@
|
||||
<button
|
||||
@click="changePage(currentPage - 1)"
|
||||
:disabled="currentPage === 1"
|
||||
class="pagination-btn"
|
||||
class="pagination-btn prev-btn"
|
||||
>
|
||||
« Более новые
|
||||
<i class="bi-chevron-left"></i>
|
||||
<span>Более новые</span>
|
||||
</button>
|
||||
|
||||
<span class="pagination-info">
|
||||
Страница {{ currentPage }} из {{ pagination.pages }}
|
||||
{{ currentPage }} из {{ pagination.pages }}
|
||||
</span>
|
||||
|
||||
<button
|
||||
@click="changePage(currentPage + 1)"
|
||||
:disabled="currentPage === pagination.pages"
|
||||
class="pagination-btn"
|
||||
class="pagination-btn next-btn"
|
||||
>
|
||||
Более старые »
|
||||
<span>Более старые</span>
|
||||
<i class="bi-chevron-right"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -315,6 +335,7 @@ export default {
|
||||
|
||||
<style scoped>
|
||||
.admin-conversation-detail {
|
||||
padding: 1.5rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
@ -325,38 +346,95 @@ export default {
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
padding: 0.5rem 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.6rem 1rem;
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.back-btn:hover {
|
||||
background-color: #e9e9e9;
|
||||
}
|
||||
|
||||
.loading-indicator {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 3rem 1rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border: 4px solid rgba(255, 62, 104, 0.2);
|
||||
border-left: 4px solid #ff3e68;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.loading-spinner.small {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-width: 3px;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.error-message {
|
||||
padding: 1rem;
|
||||
background-color: #ffebee;
|
||||
color: #d32f2f;
|
||||
border-radius: 4px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.error-message i {
|
||||
font-size: 1.25rem;
|
||||
color: #d32f2f;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1.5rem;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
h2 i {
|
||||
color: #ff3e68;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
h3 i {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.conversation-container {
|
||||
@ -367,36 +445,43 @@ h3 {
|
||||
|
||||
.conversation-info {
|
||||
background-color: white;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 1rem;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
font-size: 0.875rem;
|
||||
font-size: 0.9rem;
|
||||
color: #666;
|
||||
margin-bottom: 0.25rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.id-value {
|
||||
font-family: monospace;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.participants-section {
|
||||
background-color: white;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
@ -409,10 +494,17 @@ h3 {
|
||||
.participant-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
gap: 1.25rem;
|
||||
padding: 1.25rem;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 6px;
|
||||
border-radius: 10px;
|
||||
background-color: #f9f9f9;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.participant-card:hover {
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.participant-photo {
|
||||
@ -420,6 +512,8 @@ h3 {
|
||||
height: 60px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
.participant-photo img {
|
||||
@ -432,90 +526,131 @@ h3 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #ff3e68;
|
||||
background: linear-gradient(135deg, #ff3e68, #ff5252);
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.participant-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.participant-name {
|
||||
font-weight: 500;
|
||||
margin-bottom: 0.25rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.35rem;
|
||||
font-size: 1.1rem;
|
||||
color: #333;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.participant-email {
|
||||
font-size: 0.875rem;
|
||||
font-size: 0.9rem;
|
||||
color: #666;
|
||||
margin-bottom: 0.5rem;
|
||||
margin-bottom: 0.85rem;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 0.4rem 0.75rem;
|
||||
padding: 0.5rem 0.85rem;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
font-size: 0.9rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.user-btn {
|
||||
background-color: #e3f2fd;
|
||||
background-color: rgba(25, 118, 210, 0.1);
|
||||
color: #1976d2;
|
||||
}
|
||||
|
||||
.user-btn:hover {
|
||||
background-color: rgba(25, 118, 210, 0.15);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.messages-section {
|
||||
background-color: white;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.loading-messages {
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 2rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.no-messages {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
padding: 3rem 1rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.no-messages i {
|
||||
font-size: 3rem;
|
||||
color: #ddd;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.no-messages p {
|
||||
font-size: 1.1rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.messages-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
gap: 1.25rem;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.message-item {
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
padding: 1rem 1.25rem;
|
||||
border-radius: 12px;
|
||||
max-width: 80%;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.06);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.message-item:hover {
|
||||
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.message-item.sender-1 {
|
||||
background-color: #e3f2fd;
|
||||
align-self: flex-start;
|
||||
border-bottom-left-radius: 4px;
|
||||
}
|
||||
|
||||
.message-item.sender-2 {
|
||||
background-color: #f8bbd0;
|
||||
align-self: flex-end;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
.message-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: 0.6rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.message-sender {
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.message-time {
|
||||
@ -523,13 +658,14 @@ h3 {
|
||||
}
|
||||
|
||||
.message-content {
|
||||
margin-bottom: 0.5rem;
|
||||
margin-bottom: 0.6rem;
|
||||
white-space: pre-wrap;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.message-status {
|
||||
text-align: right;
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.8rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
@ -542,25 +678,39 @@ h3 {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
gap: 1.25rem;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.pagination-btn {
|
||||
padding: 0.5rem 1rem;
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.6rem 1.25rem;
|
||||
background-color: white;
|
||||
border: 1px solid #e9ecef;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
color: #495057;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.pagination-btn:hover:not(:disabled) {
|
||||
background-color: #f8f9fa;
|
||||
border-color: #ced4da;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.pagination-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.pagination-info {
|
||||
color: #666;
|
||||
color: #6c757d;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Адаптивные стили для больших экранов (1200px+) */
|
||||
@ -572,6 +722,10 @@ h3 {
|
||||
h2 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
.conversation-container {
|
||||
gap: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Адаптивные стили для средних экранов (992px - 1199px) */
|
||||
@ -579,12 +733,17 @@ h3 {
|
||||
.admin-conversation-detail {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.conversation-container {
|
||||
gap: 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Адаптивные стили для планшетов (768px - 991px) */
|
||||
@media (min-width: 768px) and (max-width: 991px) {
|
||||
.admin-conversation-detail {
|
||||
padding: 1.25rem;
|
||||
padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
@ -594,6 +753,10 @@ h3 {
|
||||
.participants-list {
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
}
|
||||
|
||||
.conversation-container {
|
||||
gap: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Адаптивные стили для малых планшетов (576px - 767px) */
|
||||
@ -604,16 +767,36 @@ h3 {
|
||||
padding-bottom: calc(1rem + 56px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.conversation-container {
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.conversation-info,
|
||||
.participants-section,
|
||||
.messages-section {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
|
||||
.message-item {
|
||||
max-width: 85%;
|
||||
}
|
||||
|
||||
.participants-list {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
@ -625,6 +808,10 @@ h3 {
|
||||
padding-bottom: calc(0.75rem + 56px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
|
||||
.conversation-container {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.3rem;
|
||||
margin-bottom: 1rem;
|
||||
@ -639,18 +826,22 @@ h3 {
|
||||
.participants-section,
|
||||
.messages-section {
|
||||
padding: 1rem;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.participants-list {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.participant-card {
|
||||
padding: 0.75rem;
|
||||
padding: 1rem;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.participant-photo {
|
||||
@ -660,22 +851,51 @@ h3 {
|
||||
|
||||
.message-item {
|
||||
max-width: 90%;
|
||||
padding: 0.75rem;
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
|
||||
.message-header {
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.message-time {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
gap: 0.75rem;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.pagination-btn {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
padding: 0.6rem 1rem;
|
||||
}
|
||||
|
||||
.pagination-info {
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.back-btn span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.back-btn i {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.header-controls {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@ -690,6 +910,11 @@ h3 {
|
||||
.participants-section,
|
||||
.messages-section {
|
||||
padding: 0.75rem;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.message-header {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.message-time {
|
||||
@ -700,9 +925,31 @@ h3 {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.message-content {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.user-btn {
|
||||
padding: 0.35rem 0.5rem;
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
font-size: 0.8rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.participant-name {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.participant-email {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
@ -714,7 +961,7 @@ h3 {
|
||||
}
|
||||
|
||||
.conversation-container {
|
||||
gap: 1rem;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.header-controls {
|
||||
@ -739,6 +986,46 @@ h3 {
|
||||
|
||||
.pagination {
|
||||
margin-top: 0.75rem;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.pagination-btn {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* Горизонтальное расположение участников диалога */
|
||||
.participants-list {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
gap: 1rem;
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.participant-card {
|
||||
min-width: 280px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* Оптимизация сообщений для ландшафтной ориентации */
|
||||
.messages-list {
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Добавляем анимацию для плавного отображения элементов */
|
||||
.message-item,
|
||||
.participant-card,
|
||||
.conversation-info,
|
||||
.participants-section,
|
||||
.messages-section {
|
||||
animation: fadeIn 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user