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%" }}>
|
<div style={{ overflow: "hidden", height: "100%" }}>
|
||||||
<Split>
|
<Split>
|
||||||
<div style={{ minWidth: 200, width: "20%" }} ref={tableContainerRef}>
|
<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
|
<DocumentsTableComponent
|
||||||
style={{ width: 200 }}
|
|
||||||
items={tableItems}
|
items={tableItems}
|
||||||
onItemClicked={onDocumentClicked}
|
onItemClicked={onDocumentClicked}
|
||||||
onSelectedRowsChange={onSelectedRowsChange}
|
onSelectedRowsChange={onSelectedRowsChange}
|
||||||
@ -1618,6 +1620,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
Load more
|
Load more
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div style={{ minWidth: "20%", width: "100%" }}>
|
<div style={{ minWidth: "20%", width: "100%" }}>
|
||||||
{selectedDocumentContent && selectedRows.size <= 1 && (
|
{selectedDocumentContent && selectedRows.size <= 1 && (
|
||||||
<EditorReact
|
<EditorReact
|
||||||
|
Loading…
x
Reference in New Issue
Block a user