From daf93d81b9ddc0ada3deb9a83550db3beac4703d Mon Sep 17 00:00:00 2001 From: cursor-agent Date: Thu, 26 Feb 2026 16:47:58 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B8=20=D0=B8=20=D1=81=D1=82=D1=80=D0=BE=D0=BA?= =?UTF-8?q?=D0=B8=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=20=D1=81=D0=BF?= =?UTF-8?q?=D0=B8=D1=81=D0=BA=D0=BE=D0=B2=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=BE=D0=B2=20=D0=B2=20=D0=BE=D0=B4=D0=BD?= =?UTF-8?q?=D1=83=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=D1=83=20(nowrap)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- HISTORY.md | 10 ++++++++++ app/static/css/theme.css | 6 ++++++ app/templates/documents/cash_expense_list.html | 2 +- app/templates/documents/cash_inflow_list.html | 2 +- app/templates/documents/cash_transfer_list.html | 2 +- app/templates/documents/customer_order_list.html | 2 +- app/templates/documents/supplier_order_list.html | 2 +- 7 files changed, 21 insertions(+), 5 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index edc1bf6..31f99b8 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,15 @@ # История изменений ERP WaterSurf +## 2025-02-26 17:10 UTC – Заголовки и строки таблиц списков документов в одну строку + +**Задача**: Заголовки таблицы и строки списка не должны переноситься на несколько строк. + +**Решение**: Добавлен класс **ws-table-list-nowrap** для таблиц списков: для него заданы `white-space: nowrap` у `th` и `td`. Обёртка `.ws-table-wrap` уже имеет `overflow-x: auto`, при необходимости таблица прокручивается по горизонтали. Класс применён к спискам: заказы клиентов, заказы поставщику, поступления, перемещения, расходы денежных средств. + +**Изменения**: theme.css (правила .ws-table-list-nowrap), customer_order_list.html, supplier_order_list.html, cash_inflow_list.html, cash_transfer_list.html, cash_expense_list.html. + +--- + ## 2025-02-26 17:00 UTC – Справочник «Статусы заказов» и поле «Статус заказа» в заказе клиента **Задача**: Справочник статусов заказов, поле в заказе клиента, отображение в списке с цветовой подложкой («Выполнено» — зелёная, «В работе» — песочная). diff --git a/app/static/css/theme.css b/app/static/css/theme.css index dfe34dc..1341e9d 100644 --- a/app/static/css/theme.css +++ b/app/static/css/theme.css @@ -216,6 +216,12 @@ body { border-bottom: 1px solid var(--ws-border); } +/* Списки документов: заголовки и строки в одну строку без переноса */ +.ws-table.ws-table-list-nowrap th, +.ws-table.ws-table-list-nowrap td { + white-space: nowrap; +} + .ws-table th { background: var(--ws-bg-elevated); font-weight: 500; diff --git a/app/templates/documents/cash_expense_list.html b/app/templates/documents/cash_expense_list.html index 691b0a6..a635652 100644 --- a/app/templates/documents/cash_expense_list.html +++ b/app/templates/documents/cash_expense_list.html @@ -8,7 +8,7 @@ Создать
- +
diff --git a/app/templates/documents/cash_inflow_list.html b/app/templates/documents/cash_inflow_list.html index 592ff08..1d94382 100644 --- a/app/templates/documents/cash_inflow_list.html +++ b/app/templates/documents/cash_inflow_list.html @@ -8,7 +8,7 @@ Создать
-
Дата
+
diff --git a/app/templates/documents/cash_transfer_list.html b/app/templates/documents/cash_transfer_list.html index 19144a9..af58c45 100644 --- a/app/templates/documents/cash_transfer_list.html +++ b/app/templates/documents/cash_transfer_list.html @@ -8,7 +8,7 @@ Создать
-
Дата
+
diff --git a/app/templates/documents/customer_order_list.html b/app/templates/documents/customer_order_list.html index 33e2b41..6d5e2ab 100644 --- a/app/templates/documents/customer_order_list.html +++ b/app/templates/documents/customer_order_list.html @@ -8,7 +8,7 @@ Создать заказ
-
Дата
+
diff --git a/app/templates/documents/supplier_order_list.html b/app/templates/documents/supplier_order_list.html index f79652d..56c26a1 100644 --- a/app/templates/documents/supplier_order_list.html +++ b/app/templates/documents/supplier_order_list.html @@ -8,7 +8,7 @@ Создать заказ
-
Дата
+
Дата