mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 10:58:33 +00:00
change mobile UI
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
.search-container.show.ai-search-ask {
|
||||||
|
width: 800px;
|
||||||
|
}
|
||||||
|
|
||||||
.ai-search-ask .ai-search-ask-header {
|
.ai-search-ask .ai-search-ask-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -60,3 +64,16 @@
|
|||||||
.ai-search-ask .ai-search-ask-footer .ai-search-ask-footer-btn:hover .seafile-multicolor-icon-send {
|
.ai-search-ask .ai-search-ask-footer .ai-search-ask-footer-btn:hover .seafile-multicolor-icon-send {
|
||||||
color: #d96d00;
|
color: #d96d00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
|
||||||
|
.search-container.show.ai-search-ask {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ai-search-ask .search-input {
|
||||||
|
box-shadow: none;
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
@@ -35,7 +35,7 @@ export default class AISearchAsk extends Component {
|
|||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
value: props.value,
|
value: props.value,
|
||||||
isLoading: true,
|
isLoading: false,
|
||||||
answeringResult: '',
|
answeringResult: '',
|
||||||
hitFiles: [],
|
hitFiles: [],
|
||||||
};
|
};
|
||||||
@@ -154,7 +154,7 @@ export default class AISearchAsk extends Component {
|
|||||||
return (
|
return (
|
||||||
<div className="search">
|
<div className="search">
|
||||||
<div className="search-mask show" onClick={this.props.closeAsk}></div>
|
<div className="search-mask show" onClick={this.props.closeAsk}></div>
|
||||||
<div className="ai-search-ask search-container show p-0" style={{width: 800}}>
|
<div className="ai-search-ask search-container show p-0">
|
||||||
|
|
||||||
<div className="ai-search-ask-header">
|
<div className="ai-search-ask-header">
|
||||||
<span className="ai-search-ask-return" onClick={this.props.closeAsk}>
|
<span className="ai-search-ask-return" onClick={this.props.closeAsk}>
|
||||||
|
@@ -434,7 +434,7 @@ export default class AISearch extends Component {
|
|||||||
if (!width || width === 'default') return null;
|
if (!width || width === 'default') return null;
|
||||||
|
|
||||||
if (!this.state.isResultShow) return null;
|
if (!this.state.isResultShow) return null;
|
||||||
if (!this.state.isResultGetted || this.getValueLength(this.inputValue) < 3) {
|
if (!this.state.isResultGetted || getValueLength(this.inputValue) < 3) {
|
||||||
return (
|
return (
|
||||||
<span className="loading-icon loading-tip"></span>
|
<span className="loading-icon loading-tip"></span>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user