From b3d543b583260119fb34f6460edaf284df32568c Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Tue, 10 Nov 2026 12:27:42 -0500 Subject: [PATCH] fix(ui): keep page headers in place while pages load Docker and QueueOperations returned a bare skeleton outside the PageLayout the loaded page renders, so the topbar popped in later and shifted content. Both now render the same PageLayout shell (Docker with its tabs) with the skeleton as the body. --- frontend/src/pages/Docker.jsx | 22 +++++++++++++--------- frontend/src/pages/QueueOperations.jsx | 9 +++------ 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/frontend/src/pages/Docker.jsx b/frontend/src/pages/Docker.jsx index 3c154d10..121d17de 100644 --- a/frontend/src/pages/Docker.jsx +++ b/frontend/src/pages/Docker.jsx @@ -172,8 +172,20 @@ const Docker = () => { return `${total} B`; } + const tabs = [ + { id: 'containers', label: t('app.docker.containers', 'Containers'), icon: Box }, + { id: 'compose', label: t('app.docker.compose', 'Compose'), icon: Package }, + { id: 'images', label: t('app.docker.images', 'Images'), icon: Layers }, + { id: 'volumes', label: t('app.docker.volumes', 'Volumes'), icon: HardDrive }, + { id: 'networks', label: t('app.docker.networks', 'Networks'), icon: NetworkIcon }, + ].map(({ id, label, icon: Icon }) => ({ to: `/docker/${id}`, label, icon: })); + if (loading) { - return ; + return ( + } title={t('common.labels.docker', 'Docker')} tabs={tabs}> + + + ); } if (!dockerStatus?.installed) { @@ -222,14 +234,6 @@ const Docker = () => { ); } - const tabs = [ - { id: 'containers', label: t('app.docker.containers', 'Containers'), icon: Box }, - { id: 'compose', label: t('app.docker.compose', 'Compose'), icon: Package }, - { id: 'images', label: t('app.docker.images', 'Images'), icon: Layers }, - { id: 'volumes', label: t('app.docker.volumes', 'Volumes'), icon: HardDrive }, - { id: 'networks', label: t('app.docker.networks', 'Networks'), icon: NetworkIcon }, - ].map(({ id, label, icon: Icon }) => ({ to: `/docker/${id}`, label, icon: })); - const hasMultipleTargets = availableServers.length > 1; const serverContextValue = { diff --git a/frontend/src/pages/QueueOperations.jsx b/frontend/src/pages/QueueOperations.jsx index 9e824a67..e3db6002 100644 --- a/frontend/src/pages/QueueOperations.jsx +++ b/frontend/src/pages/QueueOperations.jsx @@ -462,12 +462,9 @@ const QueueOperations = () => { if (loading) { return ( -
-
- - {t('app.queueOperations.loadingQueueBus', 'Loading queue bus…')} -
-
+ } title={t('app.queueOperations.queueBus', 'Queue bus')}> + + ); }