Fix columns min width

This commit is contained in:
Laurent Nguyen 2024-04-23 13:44:12 +02:00
parent 13462646f6
commit 11f4b4d959
2 changed files with 14 additions and 14 deletions

View File

@ -1459,12 +1459,12 @@ const DocumentsTabComponent: React.FunctionComponent<{
<div <div
className="tab-pane active" className="tab-pane active"
/* data-bind=" /* data-bind="
setTemplateReady: true, setTemplateReady: true,
attr:{ attr:{
id: tabId id: tabId
}, },
visible: isActive" visible: isActive"
*/ */
role="tabpanel" role="tabpanel"
style={{ display: "flex" }} style={{ display: "flex" }}
> >
@ -1553,9 +1553,9 @@ const DocumentsTabComponent: React.FunctionComponent<{
onClick={() => refreshDocumentsGrid(true)} onClick={() => refreshDocumentsGrid(true)}
disabled={!applyFilterButton.enabled} disabled={!applyFilterButton.enabled}
/* data-bind=" /* data-bind="
click: refreshDocumentsGrid.bind($data, true), click: refreshDocumentsGrid.bind($data, true),
enable: applyFilterButton.enabled" enable: applyFilterButton.enabled"
*/ */
aria-label="Apply filter" aria-label="Apply filter"
tabIndex={0} tabIndex={0}
> >
@ -1567,9 +1567,9 @@ const DocumentsTabComponent: React.FunctionComponent<{
<button <button
className="filterbtnstyle queryButton" className="filterbtnstyle queryButton"
/* data-bind=" /* data-bind="
visible: !isPreferredApiMongoDB && isExecuting, visible: !isPreferredApiMongoDB && isExecuting,
click: onAbortQueryClick" click: onAbortQueryClick"
*/ */
aria-label="Cancel Query" aria-label="Cancel Query"
tabIndex={0} tabIndex={0}
> >
@ -1600,7 +1600,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
{/* <Split> doesn't like to be a flex child */} {/* <Split> doesn't like to be a flex child */}
<div style={{ overflow: "hidden", height: "100%" }}> <div style={{ overflow: "hidden", height: "100%" }}>
<Split> <Split>
<div style={{ minWidth: 200, width: "35%", overflow: "hidden" }} ref={tableContainerRef}> <div style={{ minWidth: 120, width: "35%", overflow: "hidden" }} ref={tableContainerRef}>
<Button <Button
appearance="transparent" appearance="transparent"
aria-label="Refresh" aria-label="Refresh"

View File

@ -67,7 +67,7 @@ export const DocumentsTableComponent: React.FC<IDocumentsTableComponentProps> =
const initialSizingOptions: TableColumnSizingOptions = { const initialSizingOptions: TableColumnSizingOptions = {
id: { id: {
idealWidth: 280, idealWidth: 280,
// minWidth: 273, minWidth: 50,
}, },
}; };
columnHeaders.partitionKeyHeaders.forEach((pkHeader) => { columnHeaders.partitionKeyHeaders.forEach((pkHeader) => {