From 522f56b95f7bbb9816625d3777a32992af9c0054 Mon Sep 17 00:00:00 2001 From: litoral05 Date: Mon, 18 May 2026 13:58:40 +0100 Subject: [PATCH] Added responsiveness + custom scrollbar --- src/components/controllers/ControllersRoute.tsx | 10 +++++----- src/components/layout/AppShell.tsx | 5 ++++- src/services/apiClient.ts | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/controllers/ControllersRoute.tsx b/src/components/controllers/ControllersRoute.tsx index c69356f..3a237bf 100644 --- a/src/components/controllers/ControllersRoute.tsx +++ b/src/components/controllers/ControllersRoute.tsx @@ -290,7 +290,7 @@ export function ControllersRoute() { } } return ( -
+

@@ -320,8 +320,8 @@ export function ControllersRoute() {

)} -
- +
+

Clientes

@@ -387,7 +387,7 @@ export function ControllersRoute() {
{loading && clients.length === 0 && (
@@ -552,7 +552,7 @@ export function ControllersRoute() { )} - + {selectedClient ? ( <>
diff --git a/src/components/layout/AppShell.tsx b/src/components/layout/AppShell.tsx index 2322687..f8d9457 100644 --- a/src/components/layout/AppShell.tsx +++ b/src/components/layout/AppShell.tsx @@ -8,6 +8,9 @@ type AppShellProps = PropsWithChildren<{ onLogout: () => void; }>; +const scrollClass = + '[scrollbar-width:thin] [scrollbar-color:rgba(59,130,246,0.55)_transparent] [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-blue-500/45 hover:[&::-webkit-scrollbar-thumb]:bg-blue-500/65'; + export function AppShell({ active, onSelect, @@ -22,7 +25,7 @@ export function AppShell({ onLogout={onLogout} /> -
+
{children}
diff --git a/src/services/apiClient.ts b/src/services/apiClient.ts index 03c82ec..17e5cb9 100644 --- a/src/services/apiClient.ts +++ b/src/services/apiClient.ts @@ -1,9 +1,9 @@ import type { AppSettings } from '@/types/api'; const defaults: AppSettings = { // FOR DEBUG AND DEV PURPOSES ONLY ==========================> - backendUrl: 'http://localhost:8080',// FOR DEBUG AND DEV PURPOSES ONLY ==========================> + backendUrl: 'http://146.59.230.190:8080',// FOR DEBUG AND DEV PURPOSES ONLY ==========================> apiKey:// FOR DEBUG AND DEV PURPOSES ONLY ==========================> - 'dev-api-key',// FOR DEBUG AND DEV PURPOSES ONLY ==========================> + 'b8184608fcab419da2ce9a220ee6017daaff637b627e43ebac31b6b7c3344349',// FOR DEBUG AND DEV PURPOSES ONLY ==========================> }; const SETTINGS_KEY =