Skip to content

Commit 31633e1

Browse files
committed
refactor: update LoadingScreen component height across multiple pages for consistency
1 parent fd52e79 commit 31633e1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/pages/dashboard/hosts/ui/components/hosts.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function HostsPageComponent(props: IProps) {
2626
return (
2727
<Page title={t('constants.hosts')}>
2828
{isHostsLoading || isConfigProfilesLoading || isHostTagsLoading || isNodesLoading ? (
29-
<LoadingScreen height="60vh" />
29+
<LoadingScreen />
3030
) : (
3131
<motion.div
3232
animate={{ opacity: 1 }}

src/pages/dashboard/nodes-metrics/ui/components/nodes-metrics.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function NodesMetricsPageComponent(props: IProps) {
1818
title={t('constants.nodes-metrics')}
1919
/>
2020

21-
{isLoading ? <LoadingScreen height="60vh" /> : <NodeMetricsWidget />}
21+
{isLoading ? <LoadingScreen height="80vh" /> : <NodeMetricsWidget />}
2222

2323
<EditNodeByUuidModalWidget />
2424
</Page>

src/pages/dashboard/users/ui/components/users.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const DeferredUserTableWidget = () => {
2323
}, [])
2424

2525
if (!shouldRender) {
26-
return <LoadingScreen height="60vh" />
26+
return <LoadingScreen height="80vh" />
2727
}
2828

2929
return (

src/shared/ui/loading-screen/loading-screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function LoadingScreen({
1010
value?: number
1111
}) {
1212
return (
13-
<Center h={height}>
13+
<Center style={{ height: `calc(${height} - var(--app-shell-header-height) - 20px)` }}>
1414
<Stack align="center" gap="xs" w="100%">
1515
{text && <Text size="lg">{text}</Text>}
1616
<Progress

src/widgets/dashboard/nodes/linked-hosts-drawer/linked-hosts-drawer.widget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const LinkedHostsDrawer = memo(() => {
3838
size="500px"
3939
title={t('linked-hosts-drawer.widget.assigned-hosts')}
4040
>
41-
<LoadingScreen height="60vh" />
41+
<LoadingScreen />
4242
</Drawer>
4343
)
4444
}

0 commit comments

Comments
 (0)