fix: add scroll to update components review dialog (#8983)
Added overflow y to update
This commit is contained in:
parent
10c788af67
commit
208bc27f11
1 changed files with 22 additions and 20 deletions
|
|
@ -169,26 +169,28 @@ export default function UpdateComponentModal({
|
|||
)}
|
||||
</div>
|
||||
{isMultiple && (
|
||||
<div className="-mx-4">
|
||||
<TableComponent
|
||||
columnDefs={columnDefs}
|
||||
ref={agGrid}
|
||||
domLayout="autoHeight"
|
||||
rowData={components}
|
||||
rowSelection="multiple"
|
||||
className="ag-tool-mode ag-no-selection"
|
||||
rowHeight={30}
|
||||
headerHeight={30}
|
||||
suppressRowClickSelection={false}
|
||||
onSelectionChanged={(event) => {
|
||||
const selectedIds = event.api
|
||||
.getSelectedRows()
|
||||
.map((row) => row.id);
|
||||
setSelectedComponents(new Set(selectedIds));
|
||||
}}
|
||||
suppressRowHoverHighlight={true}
|
||||
tableOptions={{ hide_options: true }}
|
||||
/>
|
||||
<div className="max-h-[200px] overflow-y-auto overflow-x-hidden">
|
||||
<div className="-mx-4">
|
||||
<TableComponent
|
||||
columnDefs={columnDefs}
|
||||
ref={agGrid}
|
||||
domLayout="autoHeight"
|
||||
rowData={components}
|
||||
rowSelection="multiple"
|
||||
className="ag-tool-mode ag-no-selection"
|
||||
rowHeight={30}
|
||||
headerHeight={30}
|
||||
suppressRowClickSelection={false}
|
||||
onSelectionChanged={(event) => {
|
||||
const selectedIds = event.api
|
||||
.getSelectedRows()
|
||||
.map((row) => row.id);
|
||||
setSelectedComponents(new Set(selectedIds));
|
||||
}}
|
||||
suppressRowHoverHighlight={true}
|
||||
tableOptions={{ hide_options: true }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue