From 1c51124f1af68625f7508bd8907bce7cb015d15c Mon Sep 17 00:00:00 2001 From: RemiBonnet Date: Tue, 24 Nov 2026 11:25:30 +0100 Subject: [PATCH 1/5] fix(layout): make the console responsive on mobile --- .../app/components/auth-page/auth-page.tsx | 4 +- .../header/breadcrumbs/breadcrumb-item.tsx | 2 +- .../header/breadcrumbs/breadcrumbs.tsx | 2 +- .../src/app/components/header/header.tsx | 6 +- .../_authenticated/onboarding/route.tsx | 2 +- .../$organizationId/alerts/route.tsx | 6 +- .../cluster/$clusterId/overview.tsx | 2 +- .../cluster/$clusterId/settings/addons.tsx | 4 +- .../$clusterId/settings/advanced-settings.tsx | 2 +- .../$clusterId/settings/credentials.tsx | 7 +- .../$clusterId/settings/danger-zone.tsx | 2 +- .../$clusterId/settings/eks-anywhere.tsx | 9 +- .../cluster/$clusterId/settings/general.tsx | 16 +- .../$clusterId/settings/image-registry.tsx | 7 +- .../cluster/$clusterId/settings/network.tsx | 2 +- .../cluster/$clusterId/settings/resources.tsx | 7 +- .../cluster/$clusterId/settings/route.tsx | 13 +- .../organization/$organizationId/clusters.tsx | 2 +- .../$environmentId/overview/route.tsx | 4 +- .../service/$serviceId/monitoring/route.tsx | 6 +- .../$serviceId/settings/advanced-settings.tsx | 2 +- .../settings/terraform-configuration.tsx | 7 +- .../$environmentId/settings/route.tsx | 6 +- .../$projectId/settings/danger-zone.tsx | 2 +- .../project/$projectId/settings/general.tsx | 14 +- .../project/$projectId/settings/route.tsx | 6 +- .../$organizationId/settings/route.tsx | 6 +- .../routes/_authenticated/preview-code.tsx | 6 +- .../feature/src/lib/audit-logs/audit-logs.tsx | 150 ++++++++-------- .../cluster-table-node/cluster-table-node.tsx | 12 +- .../cluster-table-nodepool.tsx | 20 +-- .../cluster-workloads/cluster-workloads.tsx | 27 +-- .../cluster-access-modal.spec.tsx.snap | 14 +- .../cluster-actions.spec.tsx.snap | 12 +- .../cluster-advanced-settings.tsx | 4 +- .../__snapshots__/cluster-card.spec.tsx.snap | 6 +- .../cluster-new/cluster-new.tsx | 10 +- .../step-features/step-features.tsx | 2 +- .../cluster-delete-modal.spec.tsx.snap | 8 +- .../cluster-deployment-list.tsx | 9 +- .../cluster-dns-provider-settings.tsx | 6 +- .../cluster-log-row/cluster-log-row.tsx | 2 +- .../cluster-migration-modal.spec.tsx.snap | 12 +- .../cluster-network-settings.tsx | 16 +- .../cluster-overview-banners.tsx | 2 +- .../cluster-resources-settings.tsx | 12 +- .../__snapshots__/cluster-setup.spec.tsx.snap | 2 +- .../nodepools-resources-settings.tsx | 8 +- .../environment-stages/environment-stages.tsx | 2 +- .../header-environment-stages.tsx | 11 +- .../header-pre-check-logs.tsx | 2 +- .../list-pre-check-logs.tsx | 6 +- .../row-pre-check-logs/row-pre-check-logs.tsx | 15 +- ...eate-clone-environment-modal.spec.tsx.snap | 4 +- .../environment-action-toolbar.spec.tsx.snap | 12 +- .../environment-deployment-list.tsx | 9 +- .../environment-section.tsx | 18 +- .../environments-table/environments-table.tsx | 22 ++- .../settings-danger-zone.tsx | 2 +- .../settings-deployment-rules.tsx | 23 ++- .../lib/settings-general/settings-general.tsx | 7 +- .../settings-preview-environments.tsx | 23 ++- .../terraform-export-modal.spec.tsx.snap | 4 +- .../issue-overview/issue-overview.tsx | 2 +- .../notification-channel-overview.tsx | 2 +- .../organization-alerting.tsx | 2 +- .../database-rds-dashboard.tsx | 6 +- .../src/lib/local-chart/event-sidebar.tsx | 8 +- .../src/lib/local-chart/local-chart.tsx | 13 +- .../src/lib/modal-chart/modal-chart.tsx | 4 +- .../service-alerting/service-alerting.tsx | 2 +- .../service-dashboard/service-dashboard.tsx | 8 +- .../accept-invitation/accept-invitation.tsx | 2 +- ...annotation-create-edit-modal.spec.tsx.snap | 28 +-- .../git-token-list.spec.tsx.snap | 56 +++--- .../src/lib/git-token-list/git-token-list.tsx | 20 ++- .../label-create-edit-modal.spec.tsx.snap | 8 +- .../settings-agent-personalization.tsx | 4 +- .../settings-ai-skills/settings-ai-skills.tsx | 2 +- .../settings-api-token/settings-api-token.tsx | 6 +- .../settings-policy-api-token.tsx | 15 +- .../settings-argocd-integration.tsx | 2 +- .../billing-details/billing-details.tsx | 1 + .../settings-billing-details.tsx | 4 +- .../settings-billing-summary.tsx | 16 +- .../settings-cloud-credentials.tsx | 12 +- .../settings-container-registries.tsx | 23 +-- .../settings-danger-zone.tsx | 2 +- .../lib/settings-general/settings-general.tsx | 16 +- .../settings-git-repository-access.tsx | 14 +- .../settings-helm-repositories.tsx | 26 +-- .../settings-labels-annotations.tsx | 5 +- .../settings-mcp-server.tsx | 2 +- .../row-member/row-member.tsx | 11 +- .../lib/settings-members/settings-members.tsx | 28 ++- .../settings-roles-edit.tsx | 8 +- .../lib/settings-roles-edit/table/table.tsx | 62 ++++--- .../src/lib/settings-roles/settings-roles.tsx | 6 +- .../settings-slack-integration.tsx | 8 +- .../lib/settings-webhook/settings-webhook.tsx | 14 +- ...etworking-port-setting-modal.spec.tsx.snap | 8 +- ...s-override-arguments-setting.spec.tsx.snap | 18 +- ...alues-override-files-setting.spec.tsx.snap | 2 +- .../values-override-yaml-modal.spec.tsx.snap | 6 +- .../values-override-yaml-modal.tsx | 4 +- .../dockerfile-raw-modal.tsx | 4 +- .../header-deployment-logs.tsx | 6 +- .../src/lib/header-logs/header-logs.tsx | 9 +- .../header-service-logs.tsx | 4 +- .../sidebar-pod-statuses.tsx | 2 +- .../agentic-workflow-settings.tsx | 7 +- ...cation-container-healthchecks-settings.tsx | 7 +- .../application-container-port-settings.tsx | 2 +- ...application-container-storage-settings.tsx | 2 +- .../helm-networking-settings.tsx | 2 +- ...elm-values-override-arguments-settings.tsx | 7 +- .../helm-values-override-file-settings.tsx | 7 +- .../job-configuration/job-configuration.tsx | 7 +- .../job-dockerfile-settings.tsx | 7 +- .../service-build-settings.tsx | 16 +- .../service-danger-zone-settings.tsx | 2 +- ...rvice-deployment-restrictions-settings.tsx | 2 +- .../service-domain-settings.tsx | 2 +- .../blueprint-general-settings.tsx | 4 +- .../service-general-settings.tsx | 7 +- .../database-resources-settings.tsx | 6 +- .../service-resources-settings.tsx | 7 +- .../service-settings-layout.tsx | 6 +- .../terraform-arguments-settings.tsx | 7 +- .../dockerfile-fragment-inline-modal.tsx | 2 +- ...file-fragment-inline-setting.spec.tsx.snap | 4 +- .../agentic-workflow-runs.tsx | 51 ++++-- .../argocd-service-list.tsx | 20 ++- .../auto-deploy-section.tsx | 2 +- ...ation-cancel-lifecycle-modal.spec.tsx.snap | 6 +- .../force-unlock-modal.spec.tsx.snap | 6 +- .../git-webhook-status-badge.tsx | 6 +- .../keda/components/keda-scalers-fields.tsx | 2 +- .../__snapshots__/last-commit.spec.tsx.snap | 4 +- .../__snapshots__/last-version.spec.tsx.snap | 4 +- .../__snapshots__/pod-details.spec.tsx.snap | 8 +- .../redeploy-modal.spec.tsx.snap | 4 +- .../select-commit-modal.spec.tsx.snap | 4 +- .../select-version-modal.spec.tsx.snap | 8 +- .../service-actions.spec.tsx.snap | 12 +- .../service-advanced-settings.tsx | 4 +- .../service-avatar-switcher.tsx | 8 +- .../blueprint-update-preview-step.tsx | 2 +- .../service-clone-modal.spec.tsx.snap | 4 +- .../service-deployment-list.tsx | 9 +- .../service-list-action-bar.spec.tsx.snap | 4 +- .../__snapshots__/service-list.spec.tsx.snap | 70 ++++---- .../src/lib/service-list/service-list.tsx | 43 ++++- .../service-new/service-card/service-card.tsx | 6 +- .../src/lib/service-new/service-new.tsx | 8 +- .../instance-metrics.spec.tsx.snap | 2 +- .../service-header/service-header.tsx | 6 +- .../service-instance/service-instance.tsx | 2 +- .../service-remove-modal.tsx | 6 +- .../service-terminal.spec.tsx.snap | 10 +- .../__snapshots__/input-search.spec.tsx.snap | 4 +- .../lib/service-terminal/service-terminal.tsx | 4 +- .../variable-value-editor-modal.tsx | 4 +- .../dropdown-variable/dropdown-variable.tsx | 2 +- .../external-secrets/external-secrets-tab.tsx | 13 +- .../output-variables.spec.tsx.snap | 2 +- .../__snapshots__/variable-list.spec.tsx.snap | 170 +++++++++--------- .../variable-list/variable-list-skeleton.tsx | 2 +- .../src/lib/variable-list/variable-list.tsx | 25 +-- .../assistant-trigger/assistant-trigger.tsx | 2 +- .../ai-copilot-settings.tsx | 2 +- .../devops-copilot-button.tsx | 2 +- .../input/__snapshots__/input.spec.tsx.snap | 8 +- .../lib/devops-copilot-panel/input/input.tsx | 5 +- .../message-list/message-list.spec.tsx | 2 +- .../message-list/message-list.tsx | 2 +- .../spotlight-trigger/spotlight-trigger.tsx | 13 +- .../src/lib/sub-command/sub-command.tsx | 8 +- libs/shared/ui/src/index.ts | 2 +- .../banner/__snapshots__/banner.spec.tsx.snap | 4 +- .../ui/src/lib/components/banner/banner.tsx | 21 ++- .../button-primitive.spec.tsx.snap | 2 +- .../button-primitive/button-primitive.tsx | 6 + .../button/__snapshots__/button.spec.tsx.snap | 4 +- .../src/lib/components/checkbox/checkbox.tsx | 5 + .../components/command-menu/command-menu.tsx | 2 +- .../error-boundary/error-boundary.tsx | 2 +- .../funnel-flow-body/funnel-flow-body.tsx | 2 +- .../__snapshots__/input-filter.spec.tsx.snap | 6 +- .../ui/src/lib/components/modal/modal.tsx | 8 +- .../modal-confirmation.spec.tsx.snap | 12 +- .../modal-multi-confirmation.spec.tsx.snap | 8 +- .../password-show-hide/password-show-hide.tsx | 2 +- .../table-edition/table-edition.tsx | 11 +- .../ui/src/lib/components/tooltip/tooltip.tsx | 3 +- .../warning-screen-mobile.spec.tsx | 9 - .../warning-screen-mobile.stories.tsx | 11 -- .../warning-screen-mobile.tsx | 29 --- libs/shared/ui/src/lib/styles/main.scss | 25 ++- .../ui/src/lib/utils/mobile-layout.spec.ts | 15 ++ libs/shared/ui/src/lib/utils/mobile-layout.ts | 15 ++ 201 files changed, 1186 insertions(+), 881 deletions(-) delete mode 100644 libs/shared/ui/src/lib/components/warning-screen-mobile/warning-screen-mobile.spec.tsx delete mode 100644 libs/shared/ui/src/lib/components/warning-screen-mobile/warning-screen-mobile.stories.tsx delete mode 100644 libs/shared/ui/src/lib/components/warning-screen-mobile/warning-screen-mobile.tsx create mode 100644 libs/shared/ui/src/lib/utils/mobile-layout.spec.ts create mode 100644 libs/shared/ui/src/lib/utils/mobile-layout.ts diff --git a/apps/console/src/app/components/auth-page/auth-page.tsx b/apps/console/src/app/components/auth-page/auth-page.tsx index 411f0af27ec..f8e4176c717 100644 --- a/apps/console/src/app/components/auth-page/auth-page.tsx +++ b/apps/console/src/app/components/auth-page/auth-page.tsx @@ -49,12 +49,10 @@ const SECONDARY_PROVIDERS = [ function useMobileFriendlyBody() { useEffect(() => { - const { minWidth, overflowY } = document.body.style - document.body.style.minWidth = '0' + const { overflowY } = document.body.style document.body.style.overflowY = 'auto' return () => { - document.body.style.minWidth = minWidth document.body.style.overflowY = overflowY } }, []) diff --git a/apps/console/src/app/components/header/breadcrumbs/breadcrumb-item.tsx b/apps/console/src/app/components/header/breadcrumbs/breadcrumb-item.tsx index 0948ee03e63..3712aa66990 100644 --- a/apps/console/src/app/components/header/breadcrumbs/breadcrumb-item.tsx +++ b/apps/console/src/app/components/header/breadcrumbs/breadcrumb-item.tsx @@ -42,7 +42,7 @@ export function BreadcrumbItem({ item, items, isCurrentScope = false, footerActi const listRef = useRef(null) const labelClassName = twMerge( clsx('block min-w-0 truncate', { - 'max-w-44 md:max-w-64 lg:max-w-80': isCurrentScope, + 'md:max-w-64 lg:max-w-80': isCurrentScope, 'max-w-32 md:max-w-40 lg:max-w-52': !isCurrentScope, }) ) diff --git a/apps/console/src/app/components/header/breadcrumbs/breadcrumbs.tsx b/apps/console/src/app/components/header/breadcrumbs/breadcrumbs.tsx index ef9cf8d0b36..50207373a95 100644 --- a/apps/console/src/app/components/header/breadcrumbs/breadcrumbs.tsx +++ b/apps/console/src/app/components/header/breadcrumbs/breadcrumbs.tsx @@ -194,7 +194,7 @@ export function Breadcrumbs() { key={data.item.id} className={ index === breadcrumbData.length - 1 - ? 'flex min-w-0 flex-1 items-center gap-2' + ? 'flex min-w-[8rem] shrink items-center gap-2 md:min-w-0 md:flex-1' : 'flex shrink-0 items-center gap-2' } > diff --git a/apps/console/src/app/components/header/header.tsx b/apps/console/src/app/components/header/header.tsx index 64cd93f3436..5f162f8d386 100644 --- a/apps/console/src/app/components/header/header.tsx +++ b/apps/console/src/app/components/header/header.tsx @@ -42,10 +42,8 @@ export function Header() {
-
- -
- diff --git a/apps/console/src/routes/_authenticated/onboarding/route.tsx b/apps/console/src/routes/_authenticated/onboarding/route.tsx index 2422a4804ea..4ce459be5f0 100644 --- a/apps/console/src/routes/_authenticated/onboarding/route.tsx +++ b/apps/console/src/routes/_authenticated/onboarding/route.tsx @@ -17,7 +17,7 @@ function OnboardingLayout() { .with({ isProfile: true }, () => 1 as const) .otherwise(() => 2 as const) return ( -
+
-