Skip to content

Commit

Permalink
[#2011] Merge branch '#1966-results-frontend' into #2011-results-improve
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Mar 31, 2016
2 parents 3d33e23 + 0ee4ec4 commit af45b2b
Show file tree
Hide file tree
Showing 5 changed files with 498 additions and 138 deletions.
6 changes: 3 additions & 3 deletions akvo/rsr/static/scripts-src/my-results.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ function initReact() {
if (this.props.update.photo_url === "") {
// If no photo has been uploaded, do not show the photo.
photoPart = React.DOM.span(null );
descriptionClass = "update-description";
descriptionClass = "col-xs-12 update-description";
} else {
// Also display a photo.
if (this.editing()) {
Expand All @@ -602,7 +602,7 @@ function initReact() {
)
);
}
descriptionClass = "col-xs-7 update-description";
descriptionClass = "col-xs-12 update-description";
}

if (this.editing()) {
Expand All @@ -627,7 +627,7 @@ function initReact() {
}

return (
React.DOM.div( {className:""},
React.DOM.div( {className:"row"},
photoPart,
descriptionPart
)
Expand Down
6 changes: 3 additions & 3 deletions akvo/rsr/static/scripts-src/my-results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ function initReact() {
if (this.props.update.photo_url === "") {
// If no photo has been uploaded, do not show the photo.
photoPart = <span />;
descriptionClass = "update-description";
descriptionClass = "col-xs-12 update-description";
} else {
// Also display a photo.
if (this.editing()) {
Expand All @@ -602,7 +602,7 @@ function initReact() {
</a>
</div>;
}
descriptionClass = "col-xs-7 update-description";
descriptionClass = "col-xs-12 update-description";
}

if (this.editing()) {
Expand All @@ -627,7 +627,7 @@ function initReact() {
}

return (
<div className="">
<div className="row">
{photoPart}
{descriptionPart}
</div>
Expand Down
2 changes: 1 addition & 1 deletion akvo/rsr/static/styles-src/library.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
/* Media Queries
========================================================================== */
/* Placeholder
========================================================================== */
========================================================================== */
Loading

0 comments on commit af45b2b

Please sign in to comment.