mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
[PUI] Make dashboard header look less like a widget (#8611)
* blend in header * move indicator
This commit is contained in:
parent
8ac852728e
commit
f9487597fb
@ -1,5 +1,5 @@
|
|||||||
import { t } from '@lingui/macro';
|
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 { useDisclosure, useHotkeys } from '@mantine/hooks';
|
||||||
import { IconInfoCircle } from '@tabler/icons-react';
|
import { IconInfoCircle } from '@tabler/icons-react';
|
||||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||||
@ -275,7 +275,6 @@ export default function DashboardLayout() {
|
|||||||
editing={editing}
|
editing={editing}
|
||||||
removing={removing}
|
removing={removing}
|
||||||
/>
|
/>
|
||||||
<Divider p='xs' />
|
|
||||||
{layouts && loaded && availableWidgets.loaded ? (
|
{layouts && loaded && availableWidgets.loaded ? (
|
||||||
<>
|
<>
|
||||||
{widgetLabels.length == 0 ? (
|
{widgetLabels.length == 0 ? (
|
||||||
|
@ -50,7 +50,7 @@ export default function DashboardMenu({
|
|||||||
}, [user, instanceName]);
|
}, [user, instanceName]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper p='sm' shadow='xs'>
|
<Paper p='sm' pr={0}>
|
||||||
<Group justify='space-between' wrap='nowrap'>
|
<Group justify='space-between' wrap='nowrap'>
|
||||||
{title}
|
{title}
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ export default function DashboardMenu({
|
|||||||
<Menu.Target>
|
<Menu.Target>
|
||||||
<Indicator
|
<Indicator
|
||||||
color='red'
|
color='red'
|
||||||
position='bottom-start'
|
position='bottom-center'
|
||||||
processing
|
processing
|
||||||
disabled={!editing}
|
disabled={!editing}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user