From eab262c3f738a23ea749d817569e167c3804b873 Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Mon, 11 Nov 2024 12:55:44 -0500 Subject: [PATCH] dark theme updates --- beszel/site/src/components/navbar.tsx | 2 +- .../routes/settings/notifications.tsx | 2 +- .../site/src/components/ui/alert-dialog.tsx | 2 +- beszel/site/src/components/ui/button.tsx | 2 +- beszel/site/src/components/ui/card.tsx | 6 ++- beszel/site/src/components/ui/chart.tsx | 2 +- beszel/site/src/components/ui/dialog.tsx | 2 +- beszel/site/src/components/ui/input-tags.tsx | 2 +- beszel/site/src/components/ui/input.tsx | 2 +- beszel/site/src/components/ui/select.tsx | 2 +- beszel/site/src/components/ui/table.tsx | 7 +++- beszel/site/src/components/ui/textarea.tsx | 2 +- beszel/site/src/index.css | 38 +++++++++---------- 13 files changed, 39 insertions(+), 32 deletions(-) diff --git a/beszel/site/src/components/navbar.tsx b/beszel/site/src/components/navbar.tsx index 80b8e9e..e23da19 100644 --- a/beszel/site/src/components/navbar.tsx +++ b/beszel/site/src/components/navbar.tsx @@ -35,7 +35,7 @@ const isMac = navigator.platform.toUpperCase().indexOf("MAC") >= 0 export default function Navbar() { return ( -
+
diff --git a/beszel/site/src/components/routes/settings/notifications.tsx b/beszel/site/src/components/routes/settings/notifications.tsx index 61beed7..d7499a3 100644 --- a/beszel/site/src/components/routes/settings/notifications.tsx +++ b/beszel/site/src/components/routes/settings/notifications.tsx @@ -193,7 +193,7 @@ const ShoutrrrUrlCard = ({ url, onUrlChange, onRemove }: ShoutrrrUrlCardProps) = } return ( - +
(({ className, ...props }, ref) => ( >(({ className, ...props }, ref) => ( -
+
)) Card.displayName = "Card" diff --git a/beszel/site/src/components/ui/chart.tsx b/beszel/site/src/components/ui/chart.tsx index 5520b3d..091f699 100644 --- a/beszel/site/src/components/ui/chart.tsx +++ b/beszel/site/src/components/ui/chart.tsx @@ -334,7 +334,7 @@ const xAxis = function ({ domain, ticks, chartTime }: ChartData) { allowDataOverflow type="number" scale="time" - minTickGap={15} + minTickGap={12} tickMargin={8} axisLine={false} tickFormatter={chartTimeData[chartTime].format} diff --git a/beszel/site/src/components/ui/dialog.tsx b/beszel/site/src/components/ui/dialog.tsx index a099cbe..29f7b4d 100644 --- a/beszel/site/src/components/ui/dialog.tsx +++ b/beszel/site/src/components/ui/dialog.tsx @@ -19,7 +19,7 @@ const DialogOverlay = React.forwardRef< ( return (
diff --git a/beszel/site/src/components/ui/input.tsx b/beszel/site/src/components/ui/input.tsx index e74fa55..249ad35 100644 --- a/beszel/site/src/components/ui/input.tsx +++ b/beszel/site/src/components/ui/input.tsx @@ -9,7 +9,7 @@ const Input = React.forwardRef(({ className, type, span]:line-clamp-1", + "flex h-10 w-full items-center justify-between rounded-md border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", className )} {...props} diff --git a/beszel/site/src/components/ui/table.tsx b/beszel/site/src/components/ui/table.tsx index 8634615..ed43e5c 100644 --- a/beszel/site/src/components/ui/table.tsx +++ b/beszel/site/src/components/ui/table.tsx @@ -34,7 +34,10 @@ const TableRow = React.forwardRef ( ) @@ -46,7 +49,7 @@ const TableHead = React.forwardRef(({ classNa return (