@@ -203,43 +203,66 @@ const searchEvent = (value) => {
203
203
</script >
204
204
205
205
<template >
206
- <el-row >
207
- <el-col :span =" 24" >
208
- <el-input v-model =" form.search" placeholder =" Search" :prefix-icon =" Search" @input =" searchEvent" />
209
- </el-col >
210
- </el-row >
211
- <el-collapse v-model =" activeKeys" >
212
- <el-collapse-item title =" My Collections" v-show =" showMyCollections" name =" my-collections" >
213
- <el-collapse-item v-for =" (api, key) of apiCollections" :key =" key" :title =" api.api_collection_name"
214
- :name =" api.api_collection_name" class =" child-collapse" >
215
- <div class =" el-tabs--right" >
216
- <div v-for =" (value, key) of apiCollectionsEndpoint[api.api_collection_name]" :key =" key" class =" api-router-tab"
217
- @click =" setActive" >
218
- <RouterLink :to =" { name: 'api', params: { id: value }, query: { version: selectedVersion } }" :id =" value"
219
- active-class =" active-api-router-link" class =" api-router-link" >{{ operationIdTitle[value] }}</RouterLink >
206
+ <el-container class =" search-nav-container" >
207
+ <el-header class =" search-nav-search-bar" >
208
+ <el-col :span =" 24" >
209
+ <el-input v-model =" form.search" placeholder =" Search" :prefix-icon =" Search" @input =" searchEvent" />
210
+ </el-col >
211
+ </el-header >
212
+ <el-main >
213
+ <el-collapse v-model =" activeKeys" class =" search-nav-collapse" >
214
+ <el-collapse-item title =" My Collections" v-show =" showMyCollections" name =" my-collections" >
215
+ <el-collapse-item v-for =" (api, key) of apiCollections" :key =" key" :title =" api.api_collection_name"
216
+ :name =" api.api_collection_name" class =" child-collapse" >
217
+ <div class =" el-tabs--right" >
218
+ <div v-for =" (value, key) of apiCollectionsEndpoint[api.api_collection_name]" :key =" key" class =" api-router-tab"
219
+ @click =" setActive" >
220
+ <RouterLink :to =" { name: 'api', params: { id: value }, query: { version: selectedVersion } }" :id =" value"
221
+ active-class =" active-api-router-link" class =" api-router-link" >{{ operationIdTitle[value] }}</RouterLink >
222
+ </div >
223
+ </div >
224
+ </el-collapse-item >
225
+ </el-collapse-item >
226
+ <el-collapse-item v-for =" key in sortedKeys" :title =" key" :key =" key" :name =" key" >
227
+ <div class =" el-tabs--right" >
228
+ <div v-for =" (value, key) of sortLinks(groups[key])" :key =" value" class =" api-router-tab" @click =" setActive" >
229
+ <RouterLink active-class =" active-api-router-link" class =" api-router-link" :id =" value"
230
+ :to =" { name: 'api', params: { id: value }, query: { version: selectedVersion } }" >{{ key }}</RouterLink >
231
+ </div >
220
232
</div >
221
- </div >
222
- </el-collapse-item >
223
- </el-collapse-item >
224
- <el-collapse-item v-for =" key in sortedKeys" :title =" key" :key =" key" :name =" key" >
225
- <div class =" el-tabs--right" >
226
- <div v-for =" (value, key) of sortLinks(groups[key])" :key =" value" class =" api-router-tab" @click =" setActive" >
227
- <RouterLink active-class =" active-api-router-link" class =" api-router-link" :id =" value"
228
- :to =" { name: 'api', params: { id: value }, query: { version: selectedVersion } }" >{{ key }}</RouterLink >
229
- </div >
230
- </div >
231
- </el-collapse-item >
232
- </el-collapse >
233
+ </el-collapse-item >
234
+ </el-collapse >
235
+ </el-main >
236
+ </el-container >
237
+
233
238
</template >
234
239
235
240
<style scoped>
241
+ .search-nav-container {
242
+ height : 100% ;
243
+ max-height : 100% ;
244
+ overflow : hidden ;
245
+ padding : 0 ;
246
+ }
236
247
.search-nav {
237
248
background-color : #f8f9fb ;
238
- padding : 8px ;
249
+ max-height : 100% ;
250
+ padding-right : 0 ;
239
251
border-right : solid 1px var (--el-menu-border-color );
240
- overflow : unset !important ;
252
+
253
+ }
254
+ .search-nav-collapse {
255
+ height : 100% ;
256
+ max-height : 99% ;
257
+ margin-right : -10px ;
258
+ width : 100% ;
259
+ overflow-x : hidden ;
260
+ min-height : unset ;
261
+ }
262
+ .search-nav-search-bar {
263
+ box-shadow : rgba (0 , 0 , 0 , 0.40 ) 0px 25px 50px -20px ;
264
+ height : auto ;
241
265
}
242
-
243
266
.api-router-link {
244
267
width : 100% ;
245
268
margin-left : 15px ;
0 commit comments