Skip to content

Commit

Permalink
Fix notebook docs and ToC spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-panhead committed Sep 29, 2023
1 parent 313dfe9 commit f93609f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NOTEBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The table of contents will also automatically populate with the titles provided
### SingleColumn

The `SingleColumn` component takes a `title`, `body`, and optional centered `graphic` slot.
Directly enter the title text with no tags needed. Directly populate the other slots with text - no need for divs, at most use some `<p>` tags for the body and `<img>` for the graphic.
Directly enter the title text with no tags needed. Fill in the other slots with the body content. If you are writing paragraph blocks, I recommend wrapping all the `<p>` tags with a `<div class="flex flex-col gap-4"></div>`.

```html
<SingleColumn>
Expand Down
2 changes: 1 addition & 1 deletion src/components/lab-notebook/NotebookBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import TableOfContents from '@/components/lab-notebook/TableOfContents.vue'

<template>
<div class="flex p-4 gap-3">
<div v-if="$windowWidth >= 1024" class="basis-1/5 py-8 sticky h-1/3 top-0">
<div v-if="$windowWidth >= 1024" class="basis-1/5 py-8 ml-8 sticky h-1/3 top-0">
<TableOfContents />
</div>
<div class="flex flex-col items-center gap-10 w-full lg:basis-4/5 p-8 leading-relaxed">
Expand Down

0 comments on commit f93609f

Please sign in to comment.