Fix table coming off its container with unwanted horizontal scrollbar

This commit is contained in:
Laurent Nguyen 2024-04-23 11:04:35 +02:00
parent 86926f2d7b
commit 49a9f4d596

View File

@ -1599,8 +1599,10 @@ const DocumentsTabComponent: React.FunctionComponent<{
<div style={{ overflow: "hidden", height: "100%" }}>
<Split>
<div style={{ minWidth: 200, width: "20%" }} ref={tableContainerRef}>
<div style={{ height: "100%", width: "calc(100% - 50px)" }}>
{" "}
{/* Fix to make table not resize beyond parent's width */}
<DocumentsTableComponent
style={{ width: 200 }}
items={tableItems}
onItemClicked={onDocumentClicked}
onSelectedRowsChange={onSelectedRowsChange}
@ -1618,6 +1620,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
Load more
</a>
</div>
</div>
<div style={{ minWidth: "20%", width: "100%" }}>
{selectedDocumentContent && selectedRows.size <= 1 && (
<EditorReact