mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-08 09:15:12 +00:00
Fix table coming off its container with unwanted horizontal scrollbar
This commit is contained in:
parent
86926f2d7b
commit
49a9f4d596
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user