1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 03:41:12 +00:00

err tip improve (#2930)

This commit is contained in:
杨顺强
2019-02-11 18:22:22 +08:00
committed by Daniel Pan
parent daa0d19edd
commit 09c2f68dac
4 changed files with 13 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ class DirPanel extends React.Component {
} }
render() { render() {
const errMessage = (<div className="message empty-tip err-message"><h2>{gettext('Folder does not exist.')}</h2></div>); const errMessage = (<div className="message err-tip">{gettext('Folder does not exist.')}</div>);
const showRepoInfoBar = this.props.path === '/' && ( const showRepoInfoBar = this.props.path === '/' && (
this.props.usedRepoTags.length != 0 || this.props.readmeMarkdown != null || this.props.usedRepoTags.length != 0 || this.props.readmeMarkdown != null ||
this.props.draftCounts != 0 || this.props.reviewCounts != 0); this.props.draftCounts != 0 || this.props.reviewCounts != 0);

View File

@@ -161,7 +161,7 @@ class MainPanel extends Component {
render() { render() {
const ErrMessage = (<div className="message empty-tip err-message"><h2>{gettext('Folder does not exist.')}</h2></div>); const ErrMessage = (<div className="message err-tip">{gettext('Folder does not exist.')}</div>);
const showRepoInfoBar = this.props.path === '/' && ( const showRepoInfoBar = this.props.path === '/' && (
this.props.usedRepoTags.length != 0 || this.props.readmeMarkdown != null || this.props.usedRepoTags.length != 0 || this.props.readmeMarkdown != null ||
this.props.draftCounts != 0 || this.props.reviewCounts != 0); this.props.draftCounts != 0 || this.props.reviewCounts != 0);

View File

@@ -70,7 +70,7 @@ class MainPanel extends Component {
render() { render() {
const errMessage = (<div className="message empty-tip err-message"><h2>{gettext('Folder does not exist.')}</h2></div>); const errMessage = (<div className="message err-tip">{gettext('Folder does not exist.')}</div>);
return ( return (
<div className="main-panel wiki-main-panel o-hidden"> <div className="main-panel wiki-main-panel o-hidden">
<div className="main-panel-top panel-top"> <div className="main-panel-top panel-top">

View File

@@ -970,8 +970,16 @@ a.table-sort-op:focus {
color: #222; color: #222;
font-weight: bold; font-weight: bold;
} }
.err-message,
.err-message h2{ .err-tip {
margin: 2rem auto;
padding: 30px 40px;
font-size: 1rem;
color: #808080;
text-align: center;
}
.err-message {
color: red; color: red;
} }