Skip to content

Commit 26bf86e

Browse files
committed
Fix share block position
1 parent 4076ae3 commit 26bf86e

3 files changed

Lines changed: 16 additions & 13 deletions

File tree

js/components/blocks/ShareBlock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const ShareBlock = React.createClass({
3232
const title = 'Githubify.me (place to manage and organize tags for your repos)';
3333
//
3434
return (
35-
<div className="share-block center-block">
35+
<div className="share-block pull-right clearfix">
3636
<div className="share-block-info">
3737
<FacebookShareButton
3838
url={shareUrl}

js/components/blocks/UserBlock.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,26 @@ const UserBlock = React.createClass({
3030
<Row>
3131
<Col md={2} xs={4} className="user-block-avatar">
3232
<a href={openUser.html_url}>
33-
<img src={openUser.avatar_url} className="user-block-avatar-img" />
33+
<img
34+
src={openUser.avatar_url}
35+
className="user-block-avatar-img img-responsive"
36+
/>
3437
</a>
3538
</Col>
3639
<Col md={8} xs={4} className="user-block-main-info">
3740
<p className="user-block-main-info-name">{openUser.name}</p>
3841
<p className="user-block-main-info-login">{openUser.login}</p>
3942
</Col>
40-
<Col md={2} xs={4} className="user-block-github text-center">
41-
<FontAwesome name="github" />
42-
<p>
43+
<Col md={2} xs={4} className="user-block-github text-right">
44+
<ShareBlock />
45+
<p className="clearfix">
4346
<a href="https://github.com/Sacret/githubify" target="_blank">
44-
Fork me on Github
47+
<FontAwesome
48+
name="github"
49+
title="Fork githubify.me on Github"
50+
/>
4551
</a>
4652
</p>
47-
<ShareBlock />
4853
</Col>
4954
</Row> :
5055
null

less/components.less

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
}
1010

1111
.user-block-avatar-img {
12-
height: 150px;
12+
max-height: 150px;
1313
}
1414

1515
.user-block-main-info-name {
1616
.text-overflow();
1717
font-size: @font-size-h3;
18+
margin-bottom: 0;
1819
}
1920

2021
.user-block-main-info-login {
@@ -42,10 +43,6 @@
4243
font-size: @font-size-h4;
4344
}
4445

45-
.share-block {
46-
padding-top: 11px;
47-
}
48-
4946
.share-block-info {
5047
float: left;
5148
&:not(:last-child) {
@@ -58,6 +55,7 @@
5855
}
5956

6057
.user-block-github .fa {
58+
color: @text-color;
6159
margin-right: 0;
6260
width: auto;
6361
font-size: 60px;
@@ -225,7 +223,7 @@
225223
}
226224

227225
.logged-in-user {
228-
margin-top: 20px;
226+
margin-top: 25px;
229227
}
230228

231229
.logged-in-user-divider {

0 commit comments

Comments
 (0)