From c43132d5c0e6978e82dbc0fa3085ddbd7473f1f9 Mon Sep 17 00:00:00 2001
From: JustinKol <144163838+JustinKol@users.noreply.github.com>
Date: Tue, 25 Mar 2025 08:16:39 -0400
Subject: [PATCH] Adding container item refresh button back to upper right
corner of page (#2083)
* Moved button to upper right
* Reverted background color
* Updated test snapshot
* Added hidding refresh button on overflow
* Ran prettier and updated snapshot
---
.../Tabs/DocumentsTabV2/DocumentsTabV2.tsx | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx
index 4e7a79909..c8004fe80 100644
--- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx
+++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx
@@ -55,6 +55,7 @@ import DeleteDocumentIcon from "../../../../images/DeleteDocument.svg";
import NewDocumentIcon from "../../../../images/NewDocument.svg";
import UploadIcon from "../../../../images/Upload_16x16.svg";
import DiscardIcon from "../../../../images/discard.svg";
+import RefreshIcon from "../../../../images/refresh-cosmos.svg";
import SaveIcon from "../../../../images/save-cosmos.svg";
import * as Constants from "../../../Common/Constants";
import * as HeadersUtility from "../../../Common/HeadersUtility";
@@ -131,6 +132,14 @@ export const useDocumentsTabStyles = makeStyles({
backgroundColor: "white",
zIndex: 1,
},
+ refreshBtn: {
+ position: "absolute",
+ top: "3px",
+ right: "4px",
+ float: "right",
+ zIndex: 1,
+ backgroundColor: "transparent",
+ },
deleteProgressContent: {
paddingTop: tokens.spacingVerticalL,
},
@@ -2144,6 +2153,19 @@ export const DocumentsTabComponent: React.FunctionComponent