From 8eb53674dccbb71678b1e658aabd8bd106a4ebb6 Mon Sep 17 00:00:00 2001 From: JustinKol <144163838+JustinKol@users.noreply.github.com> Date: Thu, 27 Mar 2025 13:44:22 -0400 Subject: [PATCH] Add refresh button to Mongo DB RU and adjust ellipsis so refresh button on single column container doesn't hide it (#2089) * Moved ellipsis to the left for single column containers * Added refresh to MongoDB RU * prettier run --- .../Tabs/DocumentsTabV2/DocumentsTabV2.tsx | 25 +++++++++---------- .../DocumentsTableComponent.tsx | 2 +- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx index efd0bb996..ad1aae67b 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx @@ -2158,19 +2158,18 @@ export const DocumentsTabComponent: React.FunctionComponent - {!isPreferredApiMongoDB && - tableContainerSizePx?.width >= calculateOffset(selectedColumnIds.length) + 200 && ( -
refreshDocumentsGrid(false)} - aria-label="Refresh" - tabIndex={0} - > - Refresh -
- )} + {tableContainerSizePx?.width >= calculateOffset(selectedColumnIds.length) + 200 && ( +
refreshDocumentsGrid(false)} + aria-label="Refresh" + tabIndex={0} + > + Refresh +
+ )} {tableItems.length > 0 && ( = aria-label="Select column" size="small" icon={} - style={{ position: "absolute", right: 0, backgroundColor: tokens.colorNeutralBackground1 }} + style={{ position: "absolute", right: 10, backgroundColor: tokens.colorNeutralBackground1 }} />