✨ (App.css): add CSS rules to remove border for cells with 'no-border' class

✨ (editNodeModal): add 'no-border' class to specific table columns to remove borders
This commit is contained in:
cristhianzl 2024-06-05 16:58:40 -03:00
commit ecad6353fc
2 changed files with 14 additions and 1 deletions

View file

@ -164,3 +164,13 @@ body {
.ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb:hover { .ag-body-vertical-scroll-viewport::-webkit-scrollbar-thumb:hover {
background-color: #bbb; background-color: #bbb;
} }
/* This CSS is to not apply the border for the column having 'no-border' class */
.no-border.ag-cell:focus {
border: none !important;
outline: none;
}
.no-border.ag-cell {
border: none !important;
outline: none;
}

View file

@ -92,6 +92,7 @@ const EditNodeModal = forwardRef(
cellRenderer: TableAutoCellRender, cellRenderer: TableAutoCellRender,
flex: 1, flex: 1,
resizable: false, resizable: false,
cellClass: "no-border",
}, },
{ {
headerName: "Description", headerName: "Description",
@ -102,6 +103,7 @@ const EditNodeModal = forwardRef(
autoHeight: true, autoHeight: true,
flex: 2, flex: 2,
resizable: false, resizable: false,
cellClass: "no-border",
}, },
{ {
headerName: "Value", headerName: "Value",
@ -120,6 +122,7 @@ const EditNodeModal = forwardRef(
minWidth: 330, minWidth: 330,
flex: 1, flex: 1,
resizable: false, resizable: false,
cellClass: "no-border",
}, },
{ {
headerName: "Show", headerName: "Show",
@ -140,10 +143,10 @@ const EditNodeModal = forwardRef(
</> </>
); );
}, },
editable: false, editable: false,
maxWidth: 80, maxWidth: 80,
resizable: false, resizable: false,
cellClass: "no-border",
}, },
]; ];