Skip to content

Commit

Permalink
Merge pull request #5893 from haiwen/fix-ai-search-loading-bug
Browse files Browse the repository at this point in the history
fix ai-search loading bug
  • Loading branch information
Michael18811380328 authored Jan 12, 2024
2 parents 731577d + bf882ec commit 73f0d36
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/sdoc-wiki-page-viewer/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

@media (max-width: 991.98px) {
.wiki-page-container .sdoc-article-container {
margin: 0!important;
padding: 0 10px;
width: 100%;
margin: 0!important;
padding: 0 10px;
width: 100%;
}
.wiki-page-container .sdoc-wiki-outline-container {
display: none;
Expand All @@ -37,6 +37,6 @@

@media (max-width: 767px) {
.wiki-page-container .sdoc-wiki-outline-container {
display: none;
display: none;
}
}
2 changes: 1 addition & 1 deletion frontend/src/components/search/ai-search-ask.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class AISearchAsk extends Component {
super(props);
this.state = {
value: props.value,
isLoading: true,
isLoading: false,
answeringResult: '',
hitFiles: [],
};
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/css/lib-content-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
right: 0.5rem;
bottom: 0;
width: 1rem;
color: #888;
z-index: 2;
color: #888;
z-index: 2;
font-size: 0.8125rem;
text-align: center;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/css/side-panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@
right: 1rem;
bottom: 0;
width: 1.5rem;
color: #888;
z-index: 2;
color: #888;
z-index: 2;
font-size: 0.8125rem;
text-align: center;
}
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/pages/wiki/wiki.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.wiki-side-panel .panel-top {
background: #fff;
}

.wiki-side-nav {
flex:auto;
display:flex;
Expand All @@ -20,21 +21,25 @@
background-color: #f9f9f9;
margin-bottom: 0;
}

.heading-icon {
position: absolute;
right: 1rem;
top: 25%;
color: #888;
color: #888;
font-size: 0.8125rem;
}

.wiki-pages-container {
flex: 1;
overflow: hidden;
padding-bottom: 10px;
}

.wiki-pages-container:hover {
overflow: auto;
}

.wiki-pages-container .tree-view {
margin-left: -10px;
margin-top: 14px;
Expand Down

0 comments on commit 73f0d36

Please sign in to comment.