fix(console): comprehensive TUI rendering fixes
- Fix Enter key detection: handle multiple Enter key formats (\n, \r, \r\n) - Reduce flickering: lower render frequency from 60 FPS to 30 FPS - Fix menu bar visibility: re-render menu bar after content to prevent overwriting - Fix content positioning: explicit line positioning for categories and commands - Fix line shifting: clear lines before writing, control newlines manually - Limit visible items: prevent overflow with maxVisibleCategories/Commands - Improve CPU usage: increase sleep interval when no events processed This fixes: - Enter key not working for selection - Strong flickering of the application - Menu bar not visible or being overwritten - Top half of selection list not displayed - Lines being shifted/misaligned
This commit is contained in:
@@ -37,8 +37,16 @@ services:
|
||||
- "traefik.http.routers.gitea.priority=100"
|
||||
# Service configuration (Docker provider uses port, not url)
|
||||
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||
# Middleware chain (removed temporarily to test if it causes issues)
|
||||
# - "traefik.http.routers.gitea.middlewares=security-headers-global@file,gzip-compression@file"
|
||||
# ServersTransport for longer timeouts (prevents 504 for SSE/Long-Polling like /user/events)
|
||||
# Temporarily removed to test if this is causing the service discovery issue
|
||||
# - "traefik.http.services.gitea.loadbalancer.serversTransport=gitea-transport@docker"
|
||||
# - "traefik.http.serverstransports.gitea-transport.forwardingtimeouts.dialtimeout=10s"
|
||||
# - "traefik.http.serverstransports.gitea-transport.forwardingtimeouts.responseheadertimeout=120s"
|
||||
# - "traefik.http.serverstransports.gitea-transport.forwardingtimeouts.idleconntimeout=180s"
|
||||
# - "traefik.http.serverstransports.gitea-transport.maxidleconnsperhost=100"
|
||||
# X-Forwarded-Proto header (helps with redirects/cookies)
|
||||
- "traefik.http.middlewares.gitea-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
|
||||
- "traefik.http.routers.gitea.middlewares=gitea-headers@docker"
|
||||
# Explicitly reference the service (like MinIO does)
|
||||
- "traefik.http.routers.gitea.service=gitea"
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user