diff --git a/packages/vuepress/vuepress-theme-titanium/index.js b/packages/vuepress/vuepress-theme-titanium/index.js index 4000e6b4..7f5e0652 100644 --- a/packages/vuepress/vuepress-theme-titanium/index.js +++ b/packages/vuepress/vuepress-theme-titanium/index.js @@ -18,7 +18,7 @@ module.exports = (options, ctx) => ({ } }, plugins: [ - ['@vuepress/search', { searchMaxSuggestions: 10 }], + ['@vuepress/search', { searchMaxSuggestions: 30 }], '@vuepress/nprogress', ['container', { type: 'tip' }], ['container', { type: 'warning' }], diff --git a/packages/vuepress/vuepress-theme-titanium/styles/theme.styl b/packages/vuepress/vuepress-theme-titanium/styles/theme.styl index 3a0ed4cb..2c86c8d1 100644 --- a/packages/vuepress/vuepress-theme-titanium/styles/theme.styl +++ b/packages/vuepress/vuepress-theme-titanium/styles/theme.styl @@ -48,7 +48,10 @@ body background-color $white box-sizing border-box border-bottom 1px solid $borderColor - + .suggestions + max-height 400px + overflow-y auto + .sidebar-mask position fixed z-index 9