Reworked layout

This commit is contained in:
Théo Marchal 2024-05-22 16:57:19 +02:00
parent 7ef7344fa2
commit a7f550d69f

View File

@ -15,19 +15,20 @@ export const sharedPageComponents: SharedLayout = {
// components for pages that display a single page (e.g. a single note) // components for pages that display a single page (e.g. a single note)
export const defaultContentPageLayout: PageLayout = { export const defaultContentPageLayout: PageLayout = {
beforeBody: [ beforeBody: [
Component.MobileOnly(Component.Explorer()), // Component.MobileOnly(Component.Search()),
Component.Breadcrumbs() Component.Breadcrumbs(),
], ],
left: [ left: [
Component.PageTitle(), Component.PageTitle(),
Component.MobileOnly(Component.Spacer()), Component.MobileOnly(Component.Spacer()),
Component.MobileOnly(Component.Darkmode()), Component.MobileOnly(Component.Darkmode()),
Component.Search(), Component.DesktopOnly(Component.Explorer({folderDefaultState: "open"}))
Component.DesktopOnly(Component.Explorer())
], ],
right: [ right: [
Component.DesktopOnly(Component.Darkmode()), Component.DesktopOnly(Component.Darkmode()),
Component.DesktopOnly(Component.Search()),
Component.DesktopOnly(Component.TableOfContents()), Component.DesktopOnly(Component.TableOfContents()),
Component.MobileOnly(Component.Explorer({folderDefaultState: "open"}))
], ],
} }
@ -37,7 +38,7 @@ export const defaultListPageLayout: PageLayout = {
left: [ left: [
Component.PageTitle(), Component.PageTitle(),
Component.MobileOnly(Component.Spacer()), Component.MobileOnly(Component.Spacer()),
Component.Search(), // Component.Search(),
Component.Darkmode(), Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()), Component.DesktopOnly(Component.Explorer()),
], ],