Skip to content

Commit cfc9e4e

Browse files
committed
config-ip-filter: Remove padding from InfoPanel.
1 parent 8548014 commit cfc9e4e

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

build/app/view/netcreate/NetCreate.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const FILTERLOGIC = require('./filter-logic'); // handles filtering functions
133133
<NodeSelector/>
134134
</div>
135135
</div>
136-
<div id="middle" style={{backgroundColor:'#fcfcfc', flex:'3 0 60%', padding:'10px',marginTop:'38px'}}>
136+
<div id="middle" style={{backgroundColor:'#fcfcfc', flex:'3 0 60%',marginTop:'38px'}}>
137137
<InfoPanel/>
138138
<NetGraph/>
139139
<div style={{fontSize:'10px',position:'fixed',left:'0px',bottom:'0px',right:'0px',zIndex:'1500',color:'#aaa',backgroundColor:'#eee',padding:'5px 10px'}}>Please contact Professor

build/app/view/netcreate/components/InfoPanel.jsx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ class InfoPanel extends UNISYS.Component {
108108
e.stopPropagation();
109109
let top = e.clientY + this.state.draggerMouseOffsetY;
110110
this.setState({
111-
tabpanelHeight: (top - this.state.tabpanelTop) + 'px',
112-
tableHeight: (top - this.state.tabpanelTop - 55) + 'px', // Hacked tab button + thead offset
113-
draggerTop: top + 'px',
114-
savedTabpanelHeight: (top - this.state.tabpanelTop) + 'px', // remember height when switching tabs
111+
tabpanelHeight: (top - this.state.tabpanelTop - 40) + 'px',
112+
tableHeight: (top - this.state.tabpanelTop) + 'px',
113+
savedTabpanelHeight: (top - this.state.tabpanelTop - 40) + 'px', // remember height when switching tabs
115114
bIgnoreTableUpdates: true // ignore this update at the table level if it is a large data set
116115
});
117116
}
@@ -150,7 +149,7 @@ class InfoPanel extends UNISYS.Component {
150149
return (
151150
<div>
152151
<div id='tabpanel'
153-
style={{ height: tabpanelHeight, overflow: 'hidden', backgroundColor: '#eee', padding: '5px' }}>
152+
style={{ height: tabpanelHeight, overflow: 'hidden', backgroundColor: '#eee'}}>
154153
<Nav tabs>
155154
<NavItem>
156155
<NavLink
@@ -201,15 +200,11 @@ class InfoPanel extends UNISYS.Component {
201200
</NavLink>
202201
</NavItem>
203202
</Nav>
204-
<TabContent activeTab={this.state.activeTab} >
203+
<TabContent activeTab={this.state.activeTab} style={{overflow: 'hidden auto'}}>
205204
<TabPane tabId="1">
206205
</TabPane>
207206
<TabPane tabId="2">
208-
<Row>
209-
<Col sm="12">
210-
<FiltersPanel tableHeight={tableHeight} />
211-
</Col>
212-
</Row>
207+
<FiltersPanel tableHeight={tableHeight} />
213208
</TabPane>
214209
<TabPane tabId="3">
215210
<Row>
@@ -244,8 +239,7 @@ class InfoPanel extends UNISYS.Component {
244239

245240
<div id='dragger' hidden={hideDragger}
246241
style={{
247-
top: draggerTop,
248-
position: 'absolute', width: '100%', height: '10px', backgroundColor: 'gray',
242+
position: 'relative', top: '0px', left: '0px', right: '0px', height: '10px', backgroundColor: 'gray',
249243
cursor: 'ns-resize'
250244
}}
251245
onMouseDown={this.handleMouseDown}

build/app/view/netcreate/components/NetGraph.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class NetGraph extends UNISYS.Component {
9797
let nodeTypes = this.AppState('TEMPLATE').nodePrompts.type.options;
9898
return (
9999
<div style={{ height: '100%' }}>
100-
<div>
100+
<div style={{ margin: '10px 0 0 10px' }}>
101101
<div className="tooltipAnchor">
102102
<span style={{ fontSize: '9px' }}><i className="fas fa-question-circle"></i>NETGRAPH for {this.AppState('TEMPLATE').name}</span>
103103
<span style={{ fontSize: '12px' }} className="tooltiptext">{this.AppState('TEMPLATE').description}</span>

0 commit comments

Comments
 (0)