Skip to content

Commit

Permalink
Update candidate view UI
Browse files Browse the repository at this point in the history
  • Loading branch information
pertrai1 committed Feb 15, 2016
1 parent 1bb0e66 commit 2024b58
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
21 changes: 13 additions & 8 deletions src/js/routes/Ballot/Candidate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import StarAction from '../../components/StarAction';
export default class Candidate extends Component {
static propTypes = {
//history: PropTypes.func.isRequired,
history: PropTypes.string,
oppose_on: PropTypes.boolean,
params: PropTypes.object.isRequired,
support_on: PropTypes.boolean
};

constructor(props) {
Expand Down Expand Up @@ -41,8 +44,8 @@ export default class Candidate extends Component {
}

return (
<section className="candidate">
<div className='candidate-detail-route'>
<section className="candidate well well-90 gutter-top--small">
<div className="candidate-detail-route list-group-item">
{/*
<header className="row">
<div className="col-xs-6 col-md-6 text-center">
Expand Down Expand Up @@ -97,14 +100,16 @@ export default class Candidate extends Component {
Courtesy of Ballotpedia.org */}
</div>
</div>
<div className="col-xs-8">
<div>Running for <span className="running-for-office-emphasis">{ candidate.office_display_name }</span></div>
<ItemActionBar2 we_vote_id={candidate.we_vote_id}
is_support={candidate.is_support} is_oppose={candidate.is_oppose}
supportCount={candidate.supportCount} opposeCount={candidate.opposeCount} />
<div className="row" style={{ "paddingBottom": "10" }}>
<div className="col-xs-8">
<div>Running for <span className="running-for-office-emphasis">{ candidate.office_display_name }</span></div>
</div>
</div>
<ItemActionBar2 we_vote_id={candidate.we_vote_id}
is_support={candidate.is_support} is_oppose={candidate.is_oppose}
supportCount={candidate.supportCount} opposeCount={candidate.opposeCount} />
</div>
<div className="container-fluid well well-90">
<div className="container-fluid well-90">
{/* Post privately box */}
{/*
<ul className="list-group">
Expand Down
4 changes: 4 additions & 0 deletions src/sass/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ html {
box-sizing: border-box;
}

#app {
height: 100%;
}

*, *::before, *::after {
box-sizing: inherit;
}
2 changes: 1 addition & 1 deletion src/sass/components/_itemActionbar.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.item-actionbar {
.item-actionbar, .item-actionbar2 {
border-top: 1px solid #DDD;
padding:10px 5px;

Expand Down

0 comments on commit 2024b58

Please # to comment.