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 @@ Создать заказ
-
Дата
+
Дата