From d858bd4e0fc7aaba15509a17b35138e843667bc1 Mon Sep 17 00:00:00 2001 From: Pawel Zelawski Date: Thu, 10 Apr 2025 14:35:56 +0200 Subject: refactor: improve layout and spacing across all views - Remove extra space at the top of the page by adjusting body and root styles - Add consistent 20px top padding to all views through app-container - Simplify layout structure by removing unnecessary flex containers - Adjust spacing between elements for better visual hierarchy: - Reduce gaps between elements from 1.5rem to 1rem - Reduce bottom margin of h1 from 1.5rem to 1rem - Remove negative margins and extra padding - Maintain consistent box dimensions (390px width, 560px height) for all views - Ensure proper spacing for QR code and other content within views --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vite.config.ts') diff --git a/vite.config.ts b/vite.config.ts index 5e62e9a..69d80d1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,9 +6,9 @@ export default defineConfig({ plugins: [react()], server: { proxy: { - // Proxy /api requests to the backend server (running on port 3001 by default) + // Proxy /api requests to the backend server (running on port 3000 now) '/api': { - target: 'http://localhost:3001', // Default backend port, adjust if needed + target: 'http://localhost:3000', // Adjust to match backend PORT from .env changeOrigin: true, // Recommended for virtual hosted sites secure: false, // Don't verify SSL certs if backend uses self-signed cert in dev }, -- cgit v1.2.3