Fix: заголовки и строки таблиц списков документов в одну строку (nowrap)

Made-with: Cursor
This commit is contained in:
2026-02-26 16:47:58 +00:00
parent 29cf44e278
commit daf93d81b9
7 changed files with 21 additions and 5 deletions

View File

@@ -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 Справочник «Статусы заказов» и поле «Статус заказа» в заказе клиента
**Задача**: Справочник статусов заказов, поле в заказе клиента, отображение в списке с цветовой подложкой («Выполнено» — зелёная, «В работе» — песочная).

View File

@@ -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;

View File

@@ -8,7 +8,7 @@
<a href="{% url 'documents:cash_expense_create' %}" class="btn btn-ws-primary">Создать</a>
</div>
<div class="ws-table-wrap">
<table class="ws-table">
<table class="ws-table ws-table-list-nowrap">
<thead>
<tr>
<th>Дата</th>

View File

@@ -8,7 +8,7 @@
<a href="{% url 'documents:cash_inflow_create' %}" class="btn btn-ws-primary">Создать</a>
</div>
<div class="ws-table-wrap">
<table class="ws-table">
<table class="ws-table ws-table-list-nowrap">
<thead>
<tr>
<th>Дата</th>

View File

@@ -8,7 +8,7 @@
<a href="{% url 'documents:cash_transfer_create' %}" class="btn btn-ws-primary">Создать</a>
</div>
<div class="ws-table-wrap">
<table class="ws-table">
<table class="ws-table ws-table-list-nowrap">
<thead>
<tr>
<th>Дата</th>

View File

@@ -8,7 +8,7 @@
<a href="{% url 'documents:customer_order_create' %}" class="btn btn-ws-primary">Создать заказ</a>
</div>
<div class="ws-table-wrap">
<table class="ws-table">
<table class="ws-table ws-table-list-nowrap">
<thead>
<tr>
<th>Дата</th>

View File

@@ -8,7 +8,7 @@
<a href="{% url 'documents:supplier_order_create' %}" class="btn btn-ws-primary">Создать заказ</a>
</div>
<div class="ws-table-wrap">
<table class="ws-table">
<table class="ws-table ws-table-list-nowrap">
<thead>
<tr>
<th>Дата</th>