From 8519c97678be89970b4d157e5909218cff544a7c Mon Sep 17 00:00:00 2001 From: Nyan404 Date: Tue, 25 Aug 2026 21:36:55 +0300 Subject: [PATCH] fix: align calculator time fields --- docs/staging/bugs/2026-08-25-belki-bugs.md | 8 +++++--- structure_and_data.md | 1 + web/calculator.html | 5 +++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/staging/bugs/2026-08-25-belki-bugs.md b/docs/staging/bugs/2026-08-25-belki-bugs.md index 47c26e5..a226610 100644 --- a/docs/staging/bugs/2026-08-25-belki-bugs.md +++ b/docs/staging/bugs/2026-08-25-belki-bugs.md @@ -19,18 +19,20 @@ - повторное нажатие не создаёт дубликат отчёта; - пользователь может скопировать подготовленный текст до отправки. -## 19. В калькуляторе осмотров начало и конец должны быть в одной строке +## 19. В калькуляторе прокачки начало и конец должны быть в одной строке -**Статус:** ожидает исправления. +**Статус:** выполнено 25.08.2026. **Источник:** сообщение пользователя со скриншотом от 25.08.2026. -**Контекст:** вкладка «Калькулятор баллов», режим «Осмотры». +**Контекст:** вкладка «Калькулятор баллов», режим «Прокачка ЛУ/ЗУ». **Фактическое поведение:** поля времени «Начало» и «Конец» занимают разные строки в двухколоночной сетке. **Ожидаемое поведение:** поля «Начало» и «Конец» расположены рядом в одной строке при обычной ширине экрана; на узком экране допускается адаптивный перенос без потери доступности. +**Исправление:** поля объединены в отдельную двухколоночную группу времени, которая занимает одну строку на обычной ширине и переходит в одну колонку на узком экране. + ## 18. Дополнительные котята: неудобный ID и неверная самостоятельность **Статус:** выполнено 25.08.2026. diff --git a/structure_and_data.md b/structure_and_data.md index b1643a4..ded5df5 100644 --- a/structure_and_data.md +++ b/structure_and_data.md @@ -105,6 +105,7 @@ - 2026-08-25: server-memory admin sessions now expire after 12 hours and are capped at 100 active tokens; the browser cookie carries the same maximum age. - 2026-08-25: the deploy job waits for `deployment/belki-postgres` to become `Available`, rather than waiting for every Pod with the shared PostgreSQL label. Historical ReplicaSet Pods can remain during cleanup and must not fail a release after the current database replica is ready. - 2026-08-25: coaching reports allow an independence status for every kitten in both ЛУ and ЗУ. Natural input attaches `сам`/`не сам` written after a participant ID to that participant, and web ID fields use numeric-text input instead of spinner controls. +- 2026-08-25: the earned-points calculator groups coaching start and end times in one responsive time-range row. - 2026-08-25: removed unreferenced root-level legacy BBCode copies `belki.md`, `belki2.md`, and `belkifix.md`; the first two were byte-identical and the third differed only by a closing BBCode tag. They were neither served nor referenced by the calculator, bot, or documentation. # Обновление 2026-08-16: несколько котят diff --git a/web/calculator.html b/web/calculator.html index ab2dfdf..644eb0e 100644 --- a/web/calculator.html +++ b/web/calculator.html @@ -33,8 +33,9 @@ .identity-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .extra-kittens { display: grid; gap: 8px; } .extra-kitten { display: grid; grid-template-columns: 1fr 140px 180px auto; gap: 8px; align-items: end; } + .time-range { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .status-help { margin: -4px 0 0; font-size: .85rem; } - @media (max-width: 700px) { .extra-kitten { grid-template-columns: 1fr; } } + @media (max-width: 700px) { .extra-kitten, .time-range { grid-template-columns: 1fr; } } dialog { max-width: min(520px, calc(100% - 32px)); background: var(--paper); color: var(--ink); border: 1px solid #5a524b; border-radius: 10px; padding: 24px; box-shadow:0 24px 80px #211b1855; } dialog::backdrop { background: #211b1866; } .result { margin-top: 20px; } @@ -140,7 +141,7 @@
- +