From 225e9619071442b813ab05b84a5da3b3980f55e6 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 6 Aug 2026 07:11:02 +0000 Subject: [PATCH] fix(logistics): shorten column titles, fit headers without truncation --- src/components/logistics/LogisticsReadinessBoard.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/logistics/LogisticsReadinessBoard.jsx b/src/components/logistics/LogisticsReadinessBoard.jsx index f9a23dc..7eac116 100644 --- a/src/components/logistics/LogisticsReadinessBoard.jsx +++ b/src/components/logistics/LogisticsReadinessBoard.jsx @@ -99,18 +99,18 @@ const saveCollapsedSections = (collapsedSet) => { }; // 8 columns: Клиент | Город | Тип | Дата | Водитель | Статус | Обновлён | Добавлен в базу -const COLS = "grid-cols-[minmax(130px,2fr)_minmax(90px,1fr)_minmax(100px,0.8fr)_minmax(100px,1fr)_minmax(90px,1fr)_minmax(100px,1fr)_minmax(90px,0.8fr)_minmax(120px,1fr)]"; -const MIN_W = "min-w-[1160px]"; +const COLS = "grid-cols-[minmax(110px,1.5fr)_minmax(80px,1fr)_minmax(95px,1fr)_minmax(95px,1fr)_minmax(90px,1fr)_minmax(95px,1fr)_minmax(90px,1fr)_minmax(90px,1fr)]"; +const MIN_W = "min-w-[1060px]"; const TABLE_COLUMNS = [ { key: "customer", label: "Клиент" }, { key: "city", label: "Город" }, { key: "deliveryType", label: "Тип" }, - { key: "deliveryDate", label: "Дата доставки" }, + { key: "deliveryDate", label: "Доставка" }, { key: "driver", label: "Водитель" }, { key: "status", label: "Статус" }, { key: "updatedAt", label: "Обновлён" }, - { key: "createdAt", label: "Добавлен в базу" }, + { key: "createdAt", label: "Добавлен" }, ]; const TableHeader = ({ sort, onSort }) => ( @@ -126,7 +126,7 @@ const TableHeader = ({ sort, onSort }) => ( title={`Сортировать: ${column.label.toLowerCase()}`} aria-label={`Сортировать по колонке «${column.label}»`} > - {column.label} + {column.label} );