From 439c80602040d0f5d99b70f95b2e1b74433552f7 Mon Sep 17 00:00:00 2001 From: sergeyteleshev Date: Mon, 14 Oct 2024 15:51:16 +0200 Subject: [PATCH] CB-5810 fixes cell edit styles (#2996) Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com> --- .../src/DataGrid/Formatters/CellFormatter.module.css | 6 ------ .../src/DataGrid/Formatters/CellFormatter.tsx | 1 - .../src/DataGrid/Formatters/Menu/CellMenu.module.css | 5 +++++ 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/CellFormatter.module.css b/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/CellFormatter.module.css index f61bab5f30..abbd9a1564 100644 --- a/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/CellFormatter.module.css +++ b/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/CellFormatter.module.css @@ -10,7 +10,6 @@ display: flex; overflow: hidden; box-sizing: border-box; - position: relative; } .container { @@ -28,8 +27,3 @@ display: none; } } - -.cellMenu { - width: 25px; - height: 100%; -} diff --git a/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/CellFormatter.tsx b/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/CellFormatter.tsx index 812c964346..549f032835 100644 --- a/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/CellFormatter.tsx +++ b/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/CellFormatter.tsx @@ -59,7 +59,6 @@ export const CellFormatter = observer(function CellFormatter({ className, spreadsheetActions={spreadsheetActions} resultIndex={context.resultIndex} simple={context.simple} - className={s(styles, { cellMenu: true })} onStateSwitch={setMenuVisible} /> diff --git a/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/Menu/CellMenu.module.css b/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/Menu/CellMenu.module.css index 7ad2141da9..24fd4d4dbf 100644 --- a/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/Menu/CellMenu.module.css +++ b/webapp/packages/plugin-data-spreadsheet-new/src/DataGrid/Formatters/Menu/CellMenu.module.css @@ -18,10 +18,15 @@ position: absolute; top: 0px; right: 0px; + height: 100%; } + .menuTrigger { padding: 1px 2px; + display: flex; + align-items: center; height: 100%; + justify-content: center; &:hover { background: none;