diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 3acc55381f..21dc36d3a7 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -28,6 +28,12 @@ http { keepalive_timeout 65; gzip on; + # nginx gzips only text/html by default; add asset types (~5-6x smaller). + gzip_types text/css application/javascript application/json image/svg+xml; + gzip_min_length 1024; + gzip_vary on; + # GKE LB adds a Via header; default gzip_proxied off would skip every request. + gzip_proxied any; # Non-root user will not have access to default # /var/cache/nginx/ prefix. diff --git a/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.css b/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.css index 69be0e646f..aa6d44c188 100644 --- a/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.css +++ b/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.css @@ -1,18 +1,16 @@ /* Styles for AddLlmProfile */ -/* The settings modal's content column (.conn-modal-col) is the real scroll - container. .settings-body-pad-top declares its own overflow-y: auto with no - bounded height, which does nothing except register a nested scroll context - that would stop the sticky footer below from pinning to .conn-modal-col. - Drop it back to visible for this form. */ -.settings-body-pad-top.add-llm-profile-scroll-root { - overflow: visible; +.conn-modal-form-pad-left:has(> .add-llm-profile-body) { + padding: 8px 16px; +} + +.conn-modal-row:has(.add-llm-profile-body) { + height: auto !important; +} +.conn-modal-col:has(.add-llm-profile-body) { + overflow-y: visible; } -/* Pin the submit button to the bottom of the scrollable panel so it stays - visible as the form grows (e.g. Advanced Settings expanded) instead of - flowing past the modal. Background is set inline from the antd theme token - so scrolling fields don't show through. */ .add-llm-profile-footer { position: sticky; bottom: 0; diff --git a/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.jsx b/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.jsx index 6740cf0cda..80cf854c2d 100644 --- a/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.jsx +++ b/frontend/src/components/custom-tools/add-llm-profile/AddLlmProfile.jsx @@ -453,7 +453,7 @@ function AddLlmProfile({ }; return ( -
+
{ target: "esnext", outDir: "build", sourcemap: true, + // Single stylesheet: per-chunk CSS loads in navigation order, making + // equal-specificity cross-component rules resolve unpredictably. JS + // splitting is unaffected. + cssCodeSplit: false, // Chunk size warning limit chunkSizeWarningLimit: 1000, rollupOptions: {