From a206266a24266d528d4614fec35d908071fe569c Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sun, 15 Mar 2015 00:41:32 +0700 Subject: [PATCH] Don't use info description --- app/scripts/src/app.jsx | 7 ++----- app/styles/app.css | 22 ++++++---------------- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/app/scripts/src/app.jsx b/app/scripts/src/app.jsx index a79d9af..bb22dad 100644 --- a/app/scripts/src/app.jsx +++ b/app/scripts/src/app.jsx @@ -135,13 +135,12 @@ var Dashboard = React.createClass({ render: function(){ var p = this.getParams(), - infoImage, infoTitle, infoText, + infoImage, infoTitle, bcApi, bcItems, sacApi, sacItems; if (p.team) { infoTitle = p.team; - infoText = 'A '+ p.org +' team'; bcApi = '/api/stat/teams/top'; bcItems = ['repo', 'user'], sacApi = '/api/stat/teams/activity'; @@ -164,7 +163,6 @@ var Dashboard = React.createClass({ var info = Storage.get('org', p.org); infoImage = info.avatar_url; infoTitle = info.login; - infoText = info.descr; bcApi = '/api/stat/orgs/top'; bcItems = ['repo', 'team', 'user'], sacApi = '/api/stat/orgs/activity'; @@ -173,7 +171,7 @@ var Dashboard = React.createClass({ return (
- +
@@ -204,7 +202,6 @@ var InfoBlock = React.createClass({

{this.props.title}

-

{this.props.text}

) } diff --git a/app/styles/app.css b/app/styles/app.css index d8ccb5c..0d72956 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -73,37 +73,27 @@ section { .info-block { width: 100%; - height: 100px; + height: 50px; margin-bottom: 20px; } .info-block .img { float: left; - width: 100px; - height: 100px; + width: 50px; + height: 50px; + background-color: #ddd; background-position: center; background-size: 100% auto; - margin-right: 20px; + margin-right: 10px; border-radius: 3px; } -.info-block .img.empty { - background-color: #ddd; -} .info-block h1 { font-size: 32px; - line-height: 32px; + line-height: 50px; margin: 0; font-weight: 400; } -.info-block p { - max-width: 100%; - margin-right: 20px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - .week-selector { display: none; position: absolute;