From 31d52d5e1577ba67bf76856330e7f3a6fe4f41db Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Thu, 6 Feb 2025 20:01:04 -0500 Subject: [PATCH] update style of add system dialog --- beszel/site/src/components/add-system.tsx | 47 ++++++++++------------- beszel/site/src/index.css | 10 +++++ 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/beszel/site/src/components/add-system.tsx b/beszel/site/src/components/add-system.tsx index 2f5a038..9653d5f 100644 --- a/beszel/site/src/components/add-system.tsx +++ b/beszel/site/src/components/add-system.tsx @@ -1,12 +1,12 @@ import { Button } from "@/components/ui/button" import { - Dialog, - DialogContent, - DialogDescription, - DialogFooter, - DialogHeader, - DialogTitle, - DialogTrigger, + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, + DialogTrigger, } from "@/components/ui/dialog" import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip" @@ -44,14 +44,9 @@ export function AddSystemButton({ className }: { className?: string }) { KEY: "${publicKey}"`) } function copyDockerRun(port: string) { - copyToClipboard(`docker run -d \ - --name beszel-agent \ - --network host \ - --restart unless-stopped \ - -v /var/run/docker.sock:/var/run/docker.sock:ro \ - -e KEY="${publicKey}" \ - -e PORT=${port} \ - henrygd/beszel-agent:latest`) + copyToClipboard( + `docker run -d --name beszel-agent --network host --restart unless-stopped -v /var/run/docker.sock:/var/run/docker.sock:ro -e KEY="${publicKey}" -e PORT=${port} henrygd/beszel-agent:latest` + ) } function copyInstallCommand(port: string) { @@ -91,7 +86,7 @@ export function AddSystemButton({ className }: { className?: string }) { - + @@ -106,7 +101,7 @@ export function AddSystemButton({ className }: { className?: string }) { {/* Docker */} - + The agent must be running on the system to connect. Copy the docker-compose.yml for the agent below. @@ -115,7 +110,7 @@ export function AddSystemButton({ className }: { className?: string }) { {/* Binary */} - + The agent must be running on the system to connect. Copy the installation command for the agent below. @@ -168,24 +163,24 @@ export function AddSystemButton({ className }: { className?: string }) { {/* Docker */} - -
+ +
- - + copyDockerRun(port.current.value)}> Copy docker run @@ -199,8 +194,8 @@ export function AddSystemButton({ className }: { className?: string }) { {/* Binary */} - -