Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

UN-3185 [FIX] Deterministic CSS cascade (single bundle) + asset gzip + Edit LLM Profile modal layout (#2128)

Chandrasekharan Mcc952bfe84c4
diff --git a/frontend/nginx.conf b/frontend/nginx.conf
index 3acc55381..21dc36d3a 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 69be0e646..aa6d44c18 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 6740cf0cd..80cf854c2 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 (
- <div className="settings-body-pad-top add-llm-profile-scroll-root">
+ <div className="add-llm-profile-body">
<Form
form={form}
layout="vertical"
diff --git a/frontend/vite.config.js b/frontend/vite.config.js
index 397f00131..9ead29294 100644
--- a/frontend/vite.config.js
+++ b/frontend/vite.config.js
@@ -143,6 +143,10 @@ export default defineConfig(({ mode }) => {
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: {