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
21 changes: 21 additions & 0 deletions ui/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,27 @@ select {
letter-spacing: -0.01em;
}

main.pageContent {
margin: 0 auto;
min-width: 0;
padding: 44px 6rem 80px;
max-width: var(--notebook-width);
}

main.pageContent.dashboardLayout {
max-width: var(--dashboard-width);
}

/* Embedded contexts such as chat previews and screenshots provide their own width and padding. */
main.pageContent.fullWidth {
max-width: none;
padding: 0;
}

main.pageContent > .page-title:first-child {
margin-top: 12px;
}

/* Embedded images in rendered markdown */
.pageContent img {
display: block;
Expand Down
13 changes: 1 addition & 12 deletions ui/internal/LocalApp.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<!-- render nothing, tests fill in this element -->
{:else if Page}
{#if pageMeta.title}
<h1>{pageMeta.title}</h1>
<h1 class="page-title">{pageMeta.title}</h1>
{/if}
<Page />
{:else if compileError}
Expand All @@ -122,17 +122,6 @@
</main>

<style>
main.pageContent {
margin: 0 auto;
min-width: 0;
padding: 44px 6rem 80px;
max-width: var(--notebook-width);
}

main.pageContent.dashboardLayout {
max-width: var(--dashboard-width);
}

.page-error-heading { margin-top: 0; }

main h1:first-child {
Expand Down
Loading