mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 15:05:35 +00:00
feat: add collection description and visibility in dashboard header
This commit is contained in:
@@ -26,6 +26,9 @@ interface DashboardPageProps {
|
||||
activeCollection: CollectionWithLinks;
|
||||
}
|
||||
|
||||
const HEADER_SIZE_WITH_DESCRIPTION = 60;
|
||||
const HEADER_SIZE_WITHOUT_DESCRIPTION = 50;
|
||||
|
||||
export default function MantineDashboard(props: Readonly<DashboardPageProps>) {
|
||||
const [openedNavbar, { toggle: toggleNavbar, close: closeNavbar }] =
|
||||
useDisclosure();
|
||||
@@ -71,7 +74,11 @@ export default function MantineDashboard(props: Readonly<DashboardPageProps>) {
|
||||
<div className={classes.app_wrapper}>
|
||||
<AppShell
|
||||
layout="alt"
|
||||
header={{ height: 50 }}
|
||||
header={{
|
||||
height: !!activeCollection?.description
|
||||
? HEADER_SIZE_WITH_DESCRIPTION
|
||||
: HEADER_SIZE_WITHOUT_DESCRIPTION,
|
||||
}}
|
||||
navbar={{
|
||||
width: 300,
|
||||
breakpoint: 'sm',
|
||||
|
||||
Reference in New Issue
Block a user