вертикальный ресайз блоков подписки, опроса и связанных событий
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-09-28 20:15:33 +03:00
parent c91c0d6e1c
commit 2901724e40
+18 -18
View File
@@ -1725,23 +1725,23 @@
<div class="card-header bg-primary text-white">
<i class="fas fa-poll me-1"></i> Информация об опросе
</div>
<div class="card-body">
<div class="mb-2">
<label class="form-label fw-bold mb-1">Вопрос опроса:</label>
<div class="form-control py-2" style="min-height: auto; height: auto;">${post.poll_question || 'Не указан'}</div>
<div class="card-body p-2">
<div class="mb-1">
<small class="text-muted fw-bold">Вопрос опроса:</small>
<div class="bg-light p-2 rounded">${post.poll_question || 'Не указан'}</div>
</div>
<div class="mb-2">
<label class="form-label fw-bold mb-1">Варианты ответов:</label>
<div class="form-control py-2" style="min-height: auto; height: auto;">${decodeUnicode(post.poll_options) || 'Не указаны'}</div>
<div class="mb-1">
<small class="text-muted fw-bold">Варианты ответов:</small>
<div class="bg-light p-2 rounded">${decodeUnicode(post.poll_options) || 'Не указаны'}</div>
</div>
<div class="row">
<div class="col-md-6">
<label class="form-label fw-bold mb-1">Множественный выбор:</label>
<div class="form-control py-2" style="min-height: auto; height: auto;">${post.poll_multiple ? 'Да' : 'Нет'}</div>
<small class="text-muted fw-bold">Множественный выбор:</small>
<div class="bg-light p-2 rounded">${post.poll_multiple ? 'Да' : 'Нет'}</div>
</div>
<div class="col-md-6">
<label class="form-label fw-bold mb-1">Окончание опроса:</label>
<div class="form-control py-2" style="min-height: auto; height: auto;">${formatDate(post.poll_end_date)}</div>
<small class="text-muted fw-bold">Окончание опроса:</small>
<div class="bg-light p-2 rounded">${formatDate(post.poll_end_date)}</div>
</div>
</div>
</div>
@@ -1751,8 +1751,8 @@
<div class="card-header bg-info text-white">
<i class="fas fa-chart-bar me-1"></i> Результаты опроса в Telegram
</div>
<div class="card-body py-2">
<pre class="bg-light p-2 rounded mb-0" style="font-size: 0.9em; max-height: 200px; overflow-y: auto;">${post.tg_poll_results}</pre>
<div class="card-body p-2">
<pre class="bg-light p-2 rounded mb-0" style="font-size: 0.85em; line-height: 1.3; max-height: 150px; overflow-y: auto;">${post.tg_poll_results}</pre>
</div>
</div>` : ''}
${post.marks && post.marks.length > 0 ? `
@@ -1760,9 +1760,9 @@
<div class="card-header bg-success text-white">
<i class="fas fa-users me-1"></i> Подписки (${post.marks.length})
</div>
<div class="card-body py-2">
<div class="card-body p-2">
<div class="table-responsive">
<table class="table table-sm mb-0">
<table class="table table-sm mb-0" style="font-size: 0.9em;">
<thead>
<tr>
<th>Имя пользователя</th>
@@ -1790,13 +1790,13 @@
<div class="card-header bg-warning text-white">
<i class="fas fa-link me-1"></i> Связанные события (${linkedEvents.length})
</div>
<div class="card-body py-2">
<div class="card-body p-2">
<div class="linked-items-list">
<div class="list-group mb-0">
${linkedEvents.map(event => `
<a href="#" class="list-group-item list-group-item-action py-2"
<a href="#" class="list-group-item list-group-item-action py-1"
onclick="highlightSelectedEvent(${event.id}); document.getElementById('events-tab').click(); return false;">
${event.name || `Событие ${event.id}`}
<small>${event.name || `Событие ${event.id}`}</small>
<button class="btn btn-sm btn-outline-danger float-end"
onclick="event.stopPropagation(); unlinkPostFromEvent(${post.id}, ${event.id}); return false;">
<i class="fas fa-unlink"></i>