From 46410227f3590b09f5717351b1f8adf9ed2d14ab Mon Sep 17 00:00:00 2001 From: DmitriyMX Date: Sun, 12 Mar 2017 00:17:03 +0300 Subject: [PATCH] =?UTF-8?q?Web=20interface:=20=D1=81=D1=82=D0=B8=D0=BB?= =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D1=82=D0=B0=D0=B1=D0=BB?= =?UTF-8?q?=D0=B8=D1=86=D1=8B=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D0=BC=D0=B0=D0=BB=D0=B5=D0=BD=D1=8C?= =?UTF-8?q?=D0=BA=D0=B8=D1=85=20=D1=8D=D0=BA=D1=80=D0=B0=D0=BD=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/components.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/webinterface/src/main/resources/static/components.js b/webinterface/src/main/resources/static/components.js index 9757611..84131aa 100644 --- a/webinterface/src/main/resources/static/components.js +++ b/webinterface/src/main/resources/static/components.js @@ -77,11 +77,11 @@ var BundleTable = React.createClass({ ce('table', {className: 'table table-hover', width: '100%', style: {'margin-bottom': '0'}}, ce('thead', null, ce('tr', null, - ce('th', {style: {'width':'2%'}}, '#'), + ce('th', {className: 'col-xs-1'}, '#'), ce('th', null, 'Название'), - ce('th', null, 'Версия'), + ce('th', {className: 'hidden-xs'}, 'Версия'), ce('th', null, 'Статус'), - ce('th', {style: {'width':'5%'}}, nbsp) + ce('th', {className: 'col-xs-1'}, nbsp) ) ), ce('tbody', null, this.props.children) @@ -126,14 +126,14 @@ var BundleTableRow = React.createClass({ }); }, render: function(){ - vertAlign = {style: {'vertical-align': 'middle'}}; + vertAlign = {'vertical-align': 'middle'}; return( ce('tr', null, - ce('td', vertAlign, this.state.id), - ce('td', vertAlign, this.state.name), - ce('td', vertAlign, this.state.version), - ce('td', vertAlign, this.stateToStr(this.state.state)), - ce('td', vertAlign, + ce('td', {style: vertAlign}, this.state.id), + ce('td', {style: vertAlign}, this.state.name), + ce('td', {className: 'hidden-xs', style: vertAlign}, this.state.version), + ce('td', {style: vertAlign}, this.stateToStr(this.state.state)), + ce('td', {style: vertAlign}, ce(Button, {colored: 'danger', btnSize: 'xs', onClick: this.bndUpd}, 'update') ) )