Merge pull request #600 from mredigonda/ui-tags-and-articles

UI articles
This commit is contained in:
Ivan Diaz 2019-08-11 13:40:04 +02:00 committed by GitHub
commit 514a278574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 6 deletions

View File

@ -1,5 +1,9 @@
.admin-panel-view-article {
&__content {
word-break: break-word;
}
&__edit-buttons {
text-align: left;
margin-bottom: 20px;
@ -23,4 +27,4 @@
&__button {
margin-right: 20px;
}
}
}

View File

@ -76,9 +76,9 @@ class DashboardArticlePage extends React.Component {
getClass() {
let classes = {
'dashboard-article-page': true,
'dashboard-article-page_wrapped': _.startsWith(this.props.location.pathname, '/article/')
'dashboard-article-page_wrapped': _.startsWith(this.props.location.pathname, '/dashboard/article/')
};
return classNames(classes);
}

View File

@ -1,4 +1,5 @@
.dashboard-article-page {
word-break: break-word;
&__last-edited {
font-style: italic;
@ -9,4 +10,4 @@
&_wrapped {
padding: 0 15px;
}
}
}

View File

@ -76,7 +76,7 @@ class DashboardListArticlesPage extends React.Component {
getClass() {
let classes = {
'dashboard-list-articles-page': true,
'dashboard-list-articles-page_wrapped': (this.props.location.pathname == '/articles'),
'dashboard-list-articles-page_wrapped': (this.props.location.pathname == '/dashboard/articles'),
'col-md-10 col-md-offset-1': (!this.props.config['user-system-enabled'])
};

View File

@ -31,6 +31,7 @@
}
&_wrapped {
word-break: break-word;
padding: 0 15px;
}
}
}