fix(ui): optimizar UX y relacion de aspecto para tablets Samsung Galaxy Tab (acordeon polizas, cockpit 0-scroll y contraste)

This commit is contained in:
Carlos Tello
2026-11-04 01:15:54 -03:00
parent ebd5b7491e
commit 35d0e56f9f
5 changed files with 396 additions and 308 deletions
+3
View File
@@ -33,6 +33,9 @@ class Settings(BaseSettings):
"http://127.0.0.1:5173",
"http://localhost:8000",
"http://127.0.0.1:8000",
"https://localhost",
"http://localhost",
"capacitor://localhost",
]
# Base de Datos SQL Server (videoman)
+2 -1
View File
@@ -25,10 +25,11 @@ app = FastAPI(
# Middleware de Compresión GZip (optimiza transferencia a tablets por Wi-Fi)
app.add_middleware(GZipMiddleware, minimum_size=1000)
# Middleware de CORS
# Middleware de CORS con soporte para Capacitor (Android/iOS), LAN y Web
app.add_middleware(
CORSMiddleware,
allow_origins=settings.ALLOWED_ORIGINS,
allow_origin_regex=r"^(https?|capacitor)://(localhost|127\.0\.0\.1|192\.168\.\d+\.\d+|172\.\d+\.\d+\.\d+|10\.\d+\.\d+\.\d+)(:\d+)?$",
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],