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