From e6d1ad0ac54a4c70004dab4d4e8f9b09193d7e53 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:43:30 -0500 Subject: [PATCH] Theme scrollbars with tailwind-scrollbar (#11723) --- web/package-lock.json | 12 ++++++++++++ web/package.json | 1 + web/src/components/filter/CameraGroupSelector.tsx | 6 +++--- web/src/components/filter/LogLevelFilter.tsx | 2 +- web/src/components/filter/ReviewFilterGroup.tsx | 4 ++-- web/src/components/icons/IconPicker.tsx | 2 +- web/src/components/menu/AccountSettings.tsx | 2 +- web/src/components/menu/GeneralSettings.tsx | 2 +- web/src/components/navigation/Bottombar.tsx | 2 +- web/src/components/navigation/Sidebar.tsx | 2 +- web/src/components/overlay/MobileCameraDrawer.tsx | 2 +- .../overlay/MobileReviewSettingsDrawer.tsx | 2 +- web/src/components/overlay/VainfoDialog.tsx | 2 +- web/src/components/settings/ZoneEditPane.tsx | 2 +- web/src/index.css | 6 ++++++ web/src/pages/Exports.tsx | 2 +- web/src/pages/Settings.tsx | 2 +- web/src/pages/SubmitPlus.tsx | 2 +- web/src/views/live/LiveCameraView.tsx | 2 +- web/src/views/live/LiveDashboardView.tsx | 2 +- web/src/views/settings/AuthenticationView.tsx | 2 +- web/src/views/settings/GeneralSettingsView.tsx | 2 +- web/src/views/settings/MasksAndZonesView.tsx | 2 +- web/src/views/settings/MotionTunerView.tsx | 2 +- web/src/views/settings/ObjectSettingsView.tsx | 10 ++++------ web/src/views/system/CameraMetrics.tsx | 2 +- web/src/views/system/GeneralMetrics.tsx | 2 +- web/src/views/system/StorageMetrics.tsx | 2 +- web/tailwind.config.js | 6 +++++- 29 files changed, 55 insertions(+), 34 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 7e235ed49..b9bb41d29 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -66,6 +66,7 @@ "strftime": "^0.10.2", "swr": "^2.2.5", "tailwind-merge": "^2.3.0", + "tailwind-scrollbar": "^3.1.0", "tailwindcss-animate": "^1.0.7", "vaul": "^0.9.1", "vite-plugin-monaco-editor": "^1.1.0", @@ -7389,6 +7390,17 @@ "url": "https://github.com/sponsors/dcastil" } }, + "node_modules/tailwind-scrollbar": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tailwind-scrollbar/-/tailwind-scrollbar-3.1.0.tgz", + "integrity": "sha512-pmrtDIZeHyu2idTejfV59SbaJyvp1VRjYxAjZBH0jnyrPRo6HL1kD5Glz8VPagasqr6oAx6M05+Tuw429Z8jxg==", + "engines": { + "node": ">=12.13.0" + }, + "peerDependencies": { + "tailwindcss": "3.x" + } + }, "node_modules/tailwindcss": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.3.tgz", diff --git a/web/package.json b/web/package.json index b0a32f731..c37ecd205 100644 --- a/web/package.json +++ b/web/package.json @@ -72,6 +72,7 @@ "strftime": "^0.10.2", "swr": "^2.2.5", "tailwind-merge": "^2.3.0", + "tailwind-scrollbar": "^3.1.0", "tailwindcss-animate": "^1.0.7", "vaul": "^0.9.1", "vite-plugin-monaco-editor": "^1.1.0", diff --git a/web/src/components/filter/CameraGroupSelector.tsx b/web/src/components/filter/CameraGroupSelector.tsx index ed366e0a8..ff7d9edfb 100644 --- a/web/src/components/filter/CameraGroupSelector.tsx +++ b/web/src/components/filter/CameraGroupSelector.tsx @@ -310,7 +310,7 @@ function NewGroupDialog({ -
+
{editState === "none" && ( <>
@@ -400,7 +400,7 @@ export function EditGroupDialog({ -
+
Edit Camera Group
@@ -651,7 +651,7 @@ export function CameraGroupEdit({ /> -
+
-
+