From 35066c1388d417ed875b2345bb79881e748ce97e Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 8 Jun 2026 16:00:38 -0700 Subject: [PATCH] Add pulldown toolbar --- messages/en-US.json | 4 +- src/app/rdp/RdpClient.tsx | 79 ++++++++++---------- src/app/vnc/VncClient.tsx | 5 +- src/components/CollapsibleSessionToolbar.tsx | 47 ++++++++++++ 4 files changed, 93 insertions(+), 42 deletions(-) create mode 100644 src/components/CollapsibleSessionToolbar.tsx diff --git a/messages/en-US.json b/messages/en-US.json index d750e4b93..07ab4d6e8 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -3581,5 +3581,7 @@ "rdpFilesReadyToPaste": "Files ready to paste", "rdpFilesReadyToPasteDescription": "{count} file(s) copied to remote clipboard — press Ctrl+V on the remote desktop to paste.", "rdpUploadFailed": "Upload failed", - "rdpUnicodeKeyboardMode": "Unicode keyboard mode" + "rdpUnicodeKeyboardMode": "Unicode keyboard mode", + "sessionToolbarShow": "Show toolbar", + "sessionToolbarHide": "Hide toolbar" } diff --git a/src/app/rdp/RdpClient.tsx b/src/app/rdp/RdpClient.tsx index 4dd90242f..ab5b6b841 100644 --- a/src/app/rdp/RdpClient.tsx +++ b/src/app/rdp/RdpClient.tsx @@ -36,6 +36,7 @@ import { Alert, AlertDescription } from "@app/components/ui/alert"; import BrandedAuthSurface from "@app/components/BrandedAuthSurface"; import PoweredByPangolin from "@app/components/PoweredByPangolin"; import AuthPageFooterNotices from "@app/components/AuthPageFooterNotices"; +import CollapsibleSessionToolbar from "@app/components/CollapsibleSessionToolbar"; import { useTranslations } from "next-intl"; import { loadEncryptedLocalStorage, @@ -464,34 +465,16 @@ export default function RdpClient({ className="fixed inset-0 z-50 flex flex-col bg-neutral-900" style={{ display: showLogin ? "none" : "flex" }} > -
+ - - - - {/* */} + + + + {/* */} -
+ {moduleReady && ( -
+ -
+
+
+
+ {children} +
+ +
+
+ ); +}