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.
This commit is contained in:
Juan Denis committed 2026-11-10 12:27:42 -05:00
1 parent c43f9c3c1f
commit b3d543b583
2 files changed
+16 -15

No files matched your search

+13 -9
View File
@@ -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: <Icon size={15} /> }));
if (loading) {
return <EmptyState loading loadingVariant="table" title={t('app.docker.checkingDockerStatus', 'Checking Docker status…')} />;
return (
<PageLayout className="docker-page" icon={<Box size={18} />} title={t('common.labels.docker', 'Docker')} tabs={tabs}>
<EmptyState loading loadingVariant="table" title={t('app.docker.checkingDockerStatus', 'Checking Docker status…')} />
</PageLayout>
);
}
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: <Icon size={15} /> }));
const hasMultipleTargets = availableServers.length > 1;
const serverContextValue = {
+3 -6
View File
@@ -462,12 +462,9 @@ const QueueOperations = () => {
if (loading) {
return (
<div className="queue-page queue-page--loading">
<div className="queue-loading-card">
<Layers size={24} />
<span>{t('app.queueOperations.loadingQueueBus', 'Loading queue bus…')}</span>
</div>
</div>
<PageLayout fill className="queue-page queue-page--ops" icon={<Layers size={18} />} title={t('app.queueOperations.queueBus', 'Queue bus')}>
<EmptyState loading loadingVariant="table" title={t('app.queueOperations.loadingQueueBus', 'Loading queue bus…')} />
</PageLayout>
);
}