From 4ac98d0dab9989ab4bbf818c2f9e256659b8af96 Mon Sep 17 00:00:00 2001 From: Mohamed ELSABAGH Date: Fri, 23 Mar 2018 16:53:30 -0400 Subject: [PATCH] poll results no longer overlap comments --- src/bodies/components/profListing.js | 4 +++- src/css/_classListing.css | 7 ++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/bodies/components/profListing.js b/src/bodies/components/profListing.js index 2ed60993..b58b7aaf 100644 --- a/src/bodies/components/profListing.js +++ b/src/bodies/components/profListing.js @@ -113,6 +113,7 @@ class ClassListing extends Component { } poll(item,i){ return( +

{item.val().pollQuestion}

@@ -130,6 +131,7 @@ class ClassListing extends Component {

{item.val().ans2count}

+
) } render() { @@ -144,8 +146,8 @@ class ClassListing extends Component { { this.state.showPanel ?
- {this.state.polls.map((item,i)=>this.poll(item, i))} {this.state.comments.map((item,i)=>this.comment(item, i))} + {this.state.polls.map((item,i)=>this.poll(item, i))}
: null diff --git a/src/css/_classListing.css b/src/css/_classListing.css index 8cedf90d..c0f52a45 100644 --- a/src/css/_classListing.css +++ b/src/css/_classListing.css @@ -100,15 +100,13 @@ width: 130%; height: 50px; border-radius: 10px; - background: #DC143C; clear: both; } .pollQuestion { display: block; width: 100%; height: 50%; - padding: 5px; - background: #DC143C; + padding: 1px; font-size: 1em; } .pollAnswers { @@ -116,8 +114,7 @@ float: left; width: 100%; height: 100%; - padding: 10px; - background: #DC143C; + padding: 1px; font-size: 1em; } .pollCount{