File tree Expand file tree Collapse file tree 3 files changed +21
-14
lines changed Expand file tree Collapse file tree 3 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -126,18 +126,20 @@ export default function App() {
126
126
}
127
127
return (
128
128
< >
129
- < TopNav handleChangeSettings = { handleChangeSettings } handleSearch = { handleSearch } />
130
- { sendingRequest && (
131
- < progress className = "progress progress-success w-full" > </ progress >
132
- ) }
133
- { ! sendingRequest && (
134
- < progress className = "progress w-full" value = "100" > </ progress >
135
- ) }
136
- { error && (
137
- < div className = "alert alert-error rounded-none" >
138
- { error }
139
- </ div >
140
- ) }
129
+ < div className = "sticky top-0 z-50 bg-gray-400" >
130
+ < TopNav handleChangeSettings = { handleChangeSettings } handleSearch = { handleSearch } />
131
+ { sendingRequest && (
132
+ < progress className = "progress progress-success w-full" > </ progress >
133
+ ) }
134
+ { ! sendingRequest && (
135
+ < progress className = "progress w-full" value = "100" > </ progress >
136
+ ) }
137
+ { error && (
138
+ < div className = "alert alert-error rounded-none" >
139
+ { error }
140
+ </ div >
141
+ ) }
142
+ </ div >
141
143
< div className = "main-grid grid grid-cols-10 gap-2" >
142
144
< div className = "sidebar-wrapper col-span-3" >
143
145
< div className = 'min-h-screen' >
@@ -150,10 +152,10 @@ export default function App() {
150
152
< div className = "min-h-screen" >
151
153
< div className = "main-grid grid grid-cols-10 gap-2" >
152
154
< div className = "col-span-4 ml-5" >
153
- < ApiInfo lrdDocsItem = { lrdDocsItem } method = { lrdDocsItem . http_method } />
155
+ < ApiInfo lrdDocsItem = { lrdDocsItem } method = { lrdDocsItem . http_method } />
154
156
</ div >
155
157
< div className = "col-span-5 ml-5" >
156
- < ApiAction lrdDocsItem = { lrdDocsItem } method = { lrdDocsItem . http_method } host = { host } />
158
+ < ApiAction lrdDocsItem = { lrdDocsItem } method = { lrdDocsItem . http_method } host = { host } />
157
159
</ div >
158
160
</ div >
159
161
</ div >
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export default function Sidebar(props: Props) {
29
29
) }
30
30
< li >
31
31
< AnchorLink href = { '#' + lrdDocsItem . http_method + lrdDocsItem . uri }
32
+ offset = { ( ) => 120 }
32
33
onClick = { ( ) => {
33
34
window . history . pushState ( { } , '' , '#' + lrdDocsItem . http_method + lrdDocsItem . uri ) ;
34
35
} }
Original file line number Diff line number Diff line change 46
46
overflow : scroll;
47
47
}
48
48
49
+ h2 [id ] {
50
+ scroll-margin : 8rem ;
51
+ }
52
+
49
53
.table th .param-cell {
50
54
@apply font-normal;
51
55
@apply truncate;
You can’t perform that action at this time.
0 commit comments