Skip to content

Commit

Permalink
[PUI] Make dashboard header look less like a widget (#8611)
Browse files Browse the repository at this point in the history
* blend in header

* move indicator
  • Loading branch information
matmair authored Dec 1, 2024
1 parent 8ac8527 commit f948759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/frontend/src/components/dashboard/DashboardLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { t } from '@lingui/macro';
import { Alert, Card, Center, Divider, Loader, Text } from '@mantine/core';
import { Alert, Card, Center, Loader, Text } from '@mantine/core';
import { useDisclosure, useHotkeys } from '@mantine/hooks';
import { IconInfoCircle } from '@tabler/icons-react';
import { useCallback, useEffect, useMemo, useState } from 'react';
Expand Down Expand Up @@ -275,7 +275,6 @@ export default function DashboardLayout() {
editing={editing}
removing={removing}
/>
<Divider p='xs' />
{layouts && loaded && availableWidgets.loaded ? (
<>
{widgetLabels.length == 0 ? (
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/src/components/dashboard/DashboardMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function DashboardMenu({
}, [user, instanceName]);

return (
<Paper p='sm' shadow='xs'>
<Paper p='sm' pr={0}>
<Group justify='space-between' wrap='nowrap'>
{title}

Expand All @@ -76,7 +76,7 @@ export default function DashboardMenu({
<Menu.Target>
<Indicator
color='red'
position='bottom-start'
position='bottom-center'
processing
disabled={!editing}
>
Expand Down

0 comments on commit f948759

Please sign in to comment.