Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/chronicle/src/themes/paper/Layout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,14 @@

.content {
flex: 1;
margin-left: calc(-1 * var(--paper-sidebar-width));
background: var(--rs-color-background-neutral-primary);
}

.contentFull {
margin-left: 0;
}

.hiddenTrigger {
display: none;
}
2 changes: 1 addition & 1 deletion packages/chronicle/src/themes/paper/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function LayoutInner({
) : null}
</aside>
) : null}
<div className={cx(styles.content, classNames?.content)}>
<div className={cx(styles.content, classNames?.content, { [styles.contentFull]: !showSidebar })}>
{config.search?.enabled && <Search classNames={{ trigger: styles.hiddenTrigger }} />}
{children}
</div>
Expand Down
8 changes: 1 addition & 7 deletions packages/chronicle/src/themes/paper/Page.module.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
.main {
flex: 1;
width: 100%;
max-width: calc(1024px + var(--rs-space-17));
max-width: 1024px;
margin: 0 auto;
padding-top: var(--rs-space-12);
padding-right: var(--rs-space-17);
}

.readerMode {
padding-right: 0;
margin: 0 auto;
}

.navbar {
Expand Down
2 changes: 1 addition & 1 deletion packages/chronicle/src/themes/paper/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function Page({ page, tree }: ThemePageProps) {

return (
<>
<main className={`${styles.main} ${readerMode ? styles.readerMode : ''}`}>
<main className={styles.main}>
<div className={styles.navbar}>
<div className={styles.navLeft}>
<div className={styles.arrows}>
Expand Down
Loading