Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down