From c5489985224e4ea03a047cb23bfa4bb60505605f Mon Sep 17 00:00:00 2001 From: codex Date: Thu, 8 Oct 2026 19:08:22 +0300 Subject: [PATCH] fix: expand council descriptions to parent width --- CHANGELOG.md | 4 ++++ README.md | 2 +- app/static/admin.css | 11 +++-------- app/version.py | 6 +++--- pyproject.toml | 2 +- tests/test_api.py | 2 +- tests/test_council.py | 2 +- 7 files changed, 14 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2be8cc4..bfea35c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.16.4 + +- Вступление страницы совета и пояснения занимают всю доступную ширину своих блоков; убрана flex-разметка заголовка и ограничения ширины текста. + ## 0.16.3 - Уточнены описание страницы совета и пояснения к источникам данных, предварительным счётчикам, подтверждённым работам и подбору по специальности. diff --git a/README.md b/README.md index d234da6..99a85f2 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ node --check app/static/admin.js Тесты с данными используют временную SQLite; отдельные API smoke-тесты запускают приложение с его текущей конфигурацией. Браузерная проверка: `pip install playwright`, `python -m playwright install chromium`, затем `python tests/browser_admin.py`. Она проверяет реальный рендеринг страниц, клавиатуру, диалог, фильтры и восстановление прогресса после ошибки. Скриншоты сохраняются во временную папку; путь выводится в конце. -Версия сервиса: `0.16.3`. Админка всегда показывает версии backend и frontend в footer. +Версия сервиса: `0.16.4`. Админка всегда показывает версии backend и frontend в footer. ## Разовый импорт публикаций diff --git a/app/static/admin.css b/app/static/admin.css index 1ac099f..4dcccae 100644 --- a/app/static/admin.css +++ b/app/static/admin.css @@ -825,19 +825,14 @@ } .council__hero { - display: flex; - align-items: end; - justify-content: space-between; - gap: 32px; padding: clamp(24px, 4vw, 48px); color: #f9f6f0; background: #263640; border-radius: 16px; } -.council__hero-copy { max-width: 680px; } .council__title { margin: 0; font-family: Georgia, serif; font-size: clamp(29px, 4vw, 48px); line-height: 1.12; letter-spacing: -0.025em; } -.council__intro { max-width: 60ch; margin: 16px 0 0; color: #e3e8e5; line-height: 1.55; } +.council__intro { margin: 16px 0 0; color: #e3e8e5; line-height: 1.55; } .council__total { margin: 0; min-width: 160px; color: #e3e8e5; font-size: 14px; line-height: 1.4; } .council__total strong { display: block; color: #f6d49b; font-size: 42px; font-variant-numeric: tabular-nums; line-height: 1; } @@ -885,7 +880,7 @@ .council__message p { margin: 0; color: #4c5b64; line-height: 1.5; } @media (max-width: 700px) { - .council__hero, .council__list-heading { align-items: start; flex-direction: column; } + .council__list-heading { align-items: start; flex-direction: column; } .council__total strong { display: inline; margin-inline-end: 8px; font-size: 28px; } .council__criteria { grid-template-columns: 1fr; gap: 14px; } .council__candidate-summary { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 10px; padding: 14px; } @@ -900,7 +895,7 @@ .council__search { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; } .council__search .directory__field { flex: 1 1 240px; max-width: 520px; } .council__notice summary { cursor: pointer; padding-block: 6px; } -.council__notice p { max-width: 75ch; margin-bottom: 0; } +.council__notice p { margin-bottom: 0; } .council__counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 20px); } @media (max-width: 700px) { .council__counts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } diff --git a/app/version.py b/app/version.py index d835a64..31285a9 100644 --- a/app/version.py +++ b/app/version.py @@ -1,3 +1,3 @@ -APP_VERSION = "0.16.3" -FRONTEND_VERSION = "0.16.3" -BACKEND_VERSION = "0.16.3" +APP_VERSION = "0.16.4" +FRONTEND_VERSION = "0.16.4" +BACKEND_VERSION = "0.16.4" diff --git a/pyproject.toml b/pyproject.toml index 9428585..c2083e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "miem-workers" -version = "0.16.3" +version = "0.16.4" description = "MIEM employees parser, admin API, and web admin" requires-python = ">=3.11" dependencies = [ diff --git a/tests/test_api.py b/tests/test_api.py index b16bf27..1212c9d 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -18,7 +18,7 @@ def test_health_returns_versions(): response = TestClient(app).get("/api/health") assert response.status_code == 200 - assert response.json()["backend_version"] == "0.16.3" + assert response.json()["backend_version"] == "0.16.4" def test_api_employees_and_stats_require_admin_session(): diff --git a/tests/test_council.py b/tests/test_council.py index 85b276a..28d9179 100644 --- a/tests/test_council.py +++ b/tests/test_council.py @@ -218,7 +218,7 @@ def test_public_page_data_minimization_and_safe_links(db_session, export): assert "<script>" in response.text and "