From f7e553a7abe22953f2adb52ccbe1672271acb661 Mon Sep 17 00:00:00 2001 From: Andrey Epifancev Date: Wed, 28 Oct 2026 18:14:53 +0400 Subject: [PATCH] =?UTF-8?q?style(table):=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B8?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BF=D0=B0?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=20escape=20=D0=B2=20active?= =?UTF-8?q?CellCss=20(biome)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- web/src/components/RealtimeTable/utils/activeCellCss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/RealtimeTable/utils/activeCellCss.js b/web/src/components/RealtimeTable/utils/activeCellCss.js index 3b8ca64..1d11d0e 100644 --- a/web/src/components/RealtimeTable/utils/activeCellCss.js +++ b/web/src/components/RealtimeTable/utils/activeCellCss.js @@ -40,12 +40,12 @@ export const ACTIVE_CELL_STYLE = { zIndex: 7, boxShadow: 'inset 0 0 0 3px #1976d // Правило sx для контейнера таблицы: подсветка текущего совпадения поиска. // Вместо sx на каждой ячейке перерисовывается один селектор. null/неполное совпадение -> {}. -export const getActiveCellSx = (activeSearchMatch, escape = defaultEscape) => { +export const getActiveCellSx = (activeSearchMatch, escapeIdent = defaultEscape) => { const rowId = activeSearchMatch?.rowId; const columnId = activeSearchMatch?.columnId; if (rowId == null || columnId == null) return {}; return { - [`& tbody tr[data-row-id="${escape(rowId)}"] > td[data-col-id="${escape(columnId)}"]`]: ACTIVE_CELL_STYLE, + [`& tbody tr[data-row-id="${escapeIdent(rowId)}"] > td[data-col-id="${escapeIdent(columnId)}"]`]: ACTIVE_CELL_STYLE, }; };