diff --git a/src/app/ssh/SshClient.tsx b/src/app/ssh/SshClient.tsx index 0c96f1355..86f5bdda4 100644 --- a/src/app/ssh/SshClient.tsx +++ b/src/app/ssh/SshClient.tsx @@ -190,26 +190,22 @@ export default function SshClient({ if (error) { return ( -
-

{error}

+
+

{error}

); } return ( -
-

SSH Terminal

- +
{!connected && ( -
-
-
- +
+

+ SSH Terminal +

+ +
+ -
- -
- + + -
+ + + {connectError && ( +

+ {connectError} +

+ )} + +
- - {connectError && ( -

{connectError}

- )} - -
)} {connected && ( -
-
+
+
@@ -281,3 +270,20 @@ export default function SshClient({
); } + +function Field({ + label, + id, + children +}: { + label: string; + id: string; + children: React.ReactNode; +}) { + return ( +
+ + {children} +
+ ); +} diff --git a/src/app/vnc/VncClient.tsx b/src/app/vnc/VncClient.tsx index 373eb7763..174921eed 100644 --- a/src/app/vnc/VncClient.tsx +++ b/src/app/vnc/VncClient.tsx @@ -181,7 +181,7 @@ export default function VncClient({ className="flex h-screen flex-col bg-neutral-900" style={{ display: connected ? "flex" : "none" }} > -
+