Skip to content

Commit f456472

Browse files
committed
small tweaks to merge in hearting
1 parent 9746d2b commit f456472

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

app/assets/javascripts/components/heart.es6.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
class Heart extends React.Component {
22
render() {
33
let classes = {
4-
root: 'heart left ml1 mr2 pointer',
4+
root: 'heart left ml1 mr2',
55
icon: 'highlight center',
66
count: 'diminish center font-tiny'
77
}
88
if (this.props.layout === 'inline') {
99
classes = {
10-
root: 'heart left ml1 mr2 pointer flat',
10+
root: 'heart left ml1 mr2 flat',
1111
icon: 'highlight mr1',
1212
count: 'diminish inline'
1313
}
@@ -26,11 +26,11 @@ class Heart extends React.Component {
2626

2727
renderHeartState(classes) {
2828
if (!this.props.hearted) {
29-
return <div className={classes}>
29+
return <div className={classes + ' pointer'}>
3030
<i className="fa fa-heart-o" />
3131
</div>
3232
}
33-
return <div className={classes + ' hearted'}>
33+
return <div className={classes + ' hearted default-cursor'}>
3434
<i className="fa fa-heart" />
3535
</div>
3636
}

app/assets/stylesheets/application.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ $highlight-color: $red;
5151
border-bottom: solid 3px $blue;
5252
}
5353

54-
.pointer {
55-
cursor: pointer;
56-
}
57-
5854
$h3: 18px;
5955

6056
h1, h3 {
@@ -114,6 +110,14 @@ $placeholder: darken($silver, 20%);
114110
}
115111
}
116112

113+
.default-cursor{
114+
cursor: default !important;
115+
}
116+
117+
.pointer {
118+
cursor: pointer;
119+
}
120+
117121
a.heart {
118122
padding-top: 4px;
119123
font-size: $font-sm;

app/views/protips/index.html.haml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
-content_for :title do
22
Coderwall : A community space for developers.
33

4+
-if signed_in?
5+
#signed-in-user-liked-payload.hide=current_user.liked
6+
47
.continer
58
-if protips_view_breadcrumbs.present?
69
.mxn1.mb3

config/database.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ default: &default
2323

2424
development:
2525
<<: *default
26-
url: <%= ENV['DATABASE_URL'] %>
26+
database: coderwall-next_development
27+
url: <%= ENV['DATABASE_URL'] %> # when set overrides all other configurations
2728

2829
# The specified database role being used to connect to postgres.
2930
# To create additional roles in postgres see `$ createuser --help`.

0 commit comments

Comments
 (0)