2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 19:46:46 +00:00

[PUI] Make dashboard header look less like a widget (#8611)

* blend in header

* move indicator
This commit is contained in:
Matthias Mair 2024-12-02 00:48:44 +01:00 committed by GitHub
parent 8ac852728e
commit f9487597fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -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 ? (

View File

@ -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}
> >