diff --git a/services/web/frontend/js/features/file-tree/components/file-tree-context-menu.tsx b/services/web/frontend/js/features/file-tree/components/file-tree-context-menu.tsx
index effb7a0f8d..3afa3ece7b 100644
--- a/services/web/frontend/js/features/file-tree/components/file-tree-context-menu.tsx
+++ b/services/web/frontend/js/features/file-tree/components/file-tree-context-menu.tsx
@@ -31,9 +31,15 @@ function FileTreeContextMenu() {
open
id="dropdown-file-tree-context-menu"
onToggle={handleToggle}
+ dropup={
+ document.body.offsetHeight / contextMenuCoords.top < 2 &&
+ document.body.offsetHeight - contextMenuCoords.top < 250
+ }
+ className="context-menu"
+ style={contextMenuCoords}
>
-
+
,