搜索结果支持滚动条

This commit is contained in:
wuduoyi 2020-08-21 11:26:54 +08:00
parent f98173fbb9
commit 6ff4e44152
2 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import Axios from 'axios';
import SearchBox from '../../src/components/SearchBox'; import SearchBox from '../../src/components/SearchBox';
export default class DocSearch extends React.Component { export default class DocSearch extends React.Component {
docs; docs = [];
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {

View File

@ -714,6 +714,11 @@ a {
.search-result { .search-result {
background-color: #fff; background-color: #fff;
top: 45px;
bottom: 0;
position: fixed;
overflow-y: scroll;
overflow-x: hidden;
} }
.dark { .dark {