UI: места при завершении партии — перетаскиванием блоков (макет A2)

Вместо select-ов мест — PlaceEditor: вертикальный список блоков игроков
(верхний — 1-е место), бросок на другого игрока сливает в ничью с общей
рамкой и местом (✂ выносит обратно), выбывшие — перетаскиванием в
пунктирную зону (сервер сам ставит им последнее место). Комментарий об
игроке — строка в каждом блоке. Причина победы — PickerSelect (дженерик
расширен на строковые id), общий комментарий и медиа — карточкой,
кнопка завершения отдельно. Места считаются по блокам и всегда дают
валидный competition ranking (1,2,2,4).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 17:07:26 +03:00
co-authored by Claude Fable 5
parent 376605f554
commit 3023e9f515
4 changed files with 446 additions and 78 deletions
+88
View File
@@ -346,6 +346,94 @@ input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.picker-placeholder { color: var(--muted); }
.picker-chevron { margin-left: auto; flex: none; color: var(--muted); }
/* ─── Редактор мест перетаскиванием (PlaceEditor, завершение партии) ─── */
.rank-list { position: relative; display: flex; flex-direction: column; gap: 8px; }
.rank-block {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 8px 10px;
user-select: none;
-webkit-user-select: none;
}
.rank-row { display: flex; align-items: center; gap: 10px; }
.rank-grip {
touch-action: none; /* хват: drag вместо скролла страницы */
cursor: grab;
color: var(--text-muted);
font-size: 18px;
padding: 6px 4px;
flex: none;
}
.rank-info { flex: 1; min-width: 0; }
.rank-nick { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-faction { font-size: 12px; color: var(--text-muted); }
.rank-comment {
display: block;
width: 100%;
margin-top: 8px;
font-size: 13px;
padding: 7px 10px;
border-radius: 8px;
}
.rank-unlink {
flex: none;
width: 30px; height: 30px;
border-radius: 8px;
border: 1px solid var(--border);
background: none;
color: var(--text-muted);
cursor: pointer;
display: flex; align-items: center; justify-content: center;
}
/* Блок ничьей: общая рамка, общий хват и общее место */
.rank-tie {
display: flex;
align-items: center;
gap: 6px;
border: 1px solid var(--accent-2);
border-radius: var(--radius-sm);
padding: 6px;
background: rgba(240, 160, 75, 0.05);
}
.rank-tie-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-tie-badge {
flex: none;
display: flex; flex-direction: column; align-items: center; gap: 2px;
padding: 0 2px;
}
.rank-tie-badge .tag {
font-size: 10px;
color: var(--accent-2);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.dragging {
position: relative;
z-index: 30;
opacity: 0.95;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.merge-target { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.drop-indicator {
position: absolute;
left: 0; right: 0;
height: 3px; border-radius: 2px;
background: var(--accent-2);
display: none;
z-index: 20;
pointer-events: none;
}
.elim-zone {
border: 1px dashed var(--border);
border-radius: var(--radius-sm);
padding: 10px;
margin-top: 12px;
}
.elim-zone.highlight { border-color: var(--accent); background: rgba(224, 83, 61, 0.08); }
.elim-zone .zone-title { font-size: 12px; color: var(--text-muted); }
.elim-zone .rank-block { opacity: 0.6; margin-top: 8px; }
/* Всплывашки сверху экрана в момент прихода */
.toast-top-wrap {
position: fixed;