mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-06 21:45:47 +01:00
Update header styling
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {
|
import { createStyles, Header as Head, Group } from '@mantine/core';
|
||||||
createStyles,
|
|
||||||
Header as Head,
|
|
||||||
Group,
|
|
||||||
} from '@mantine/core';
|
|
||||||
import { NextLink } from '@mantine/next';
|
import { NextLink } from '@mantine/next';
|
||||||
import { Logo } from './Logo';
|
import { Logo } from './Logo';
|
||||||
import { SettingsMenuButton } from '../Settings/SettingsMenu';
|
import { SettingsMenuButton } from '../Settings/SettingsMenu';
|
||||||
@@ -40,7 +36,7 @@ const useStyles = createStyles((theme) => ({
|
|||||||
},
|
},
|
||||||
|
|
||||||
links: {
|
links: {
|
||||||
[theme.fn.smallerThan('md')]: {
|
[theme.fn.smallerThan('xs')]: {
|
||||||
display: 'none',
|
display: 'none',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -92,9 +88,7 @@ export function Header(props: any) {
|
|||||||
return (
|
return (
|
||||||
<Head height={HEADER_HEIGHT}>
|
<Head height={HEADER_HEIGHT}>
|
||||||
<Group direction="row" align="center" position="apart" className={classes.header} mx="xl">
|
<Group direction="row" align="center" position="apart" className={classes.header} mx="xl">
|
||||||
<NextLink style={{ textDecoration: 'none' }} href="/">
|
|
||||||
<Logo style={{ fontSize: 22 }} />
|
<Logo style={{ fontSize: 22 }} />
|
||||||
</NextLink>
|
|
||||||
<Group>
|
<Group>
|
||||||
<SearchBar />
|
<SearchBar />
|
||||||
<SettingsMenuButton />
|
<SettingsMenuButton />
|
||||||
|
|||||||
Reference in New Issue
Block a user