File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import styled from "styled-components" ;
3
- import ReactMarkdown from "react-markdown" ;
4
3
import Link from "next/link" ;
5
4
import { useRouter } from "next/router" ;
6
5
@@ -13,6 +12,11 @@ const CATEGORIES = [
13
12
{ name : "FormTextArea" , url : "/docs/FormTextArea" } ,
14
13
{ name : "FormSelect" , url : "/docs/FormSelect" } ,
15
14
{ name : "FormError" , url : "/docs/FormError" } ,
15
+ ] ,
16
+ } ,
17
+ {
18
+ category : "Advanced" ,
19
+ items : [
16
20
{ name : "Field toggling" , url : "/docs/Toggling-a-field" } ,
17
21
{ name : "Object fields" , url : "/docs/Object-fields" } ,
18
22
{ name : "Array fields" , url : "/docs/Array-fields" } ,
@@ -59,11 +63,15 @@ const CATEGORIES = [
59
63
const Container = styled . div `
60
64
position: sticky;
61
65
top: 1em;
66
+ max-height: 90vh;
67
+ overflow: auto;
68
+ padding: 0 1em 0 0;
62
69
` ;
63
70
64
71
const Item = styled . a < { current : boolean } > `
65
72
display: block;
66
73
padding: 0.4em 0.8em;
74
+
67
75
color: #111;
68
76
border-bottom: 1px solid #0002;
69
77
cursor: pointer;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default function DocPage(props: Props) {
26
26
return (
27
27
< >
28
28
< NavBar />
29
- < CenterContainer style = { { margin : "2em 0" } } >
29
+ < CenterContainer style = { { margin : "2em 0.5em " } } >
30
30
< Container >
31
31
< div >
32
32
< SideBar />
You can’t perform that action at this time.
0 commit comments