mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
Fix incorrect height of shipyard ship header
This commit is contained in:
@@ -266,8 +266,14 @@ export default class ShipyardPage extends Page {
|
|||||||
<div style={{ whiteSpace: 'nowrap', margin: '0 auto', fontSize: '0.8em', position: 'relative', display: 'inline-block', maxWidth: '100%' }}>
|
<div style={{ whiteSpace: 'nowrap', margin: '0 auto', fontSize: '0.8em', position: 'relative', display: 'inline-block', maxWidth: '100%' }}>
|
||||||
<table style={{ width: '12em', position: 'absolute', zIndex: 1 }}>
|
<table style={{ width: '12em', position: 'absolute', zIndex: 1 }}>
|
||||||
<thead>
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th className='le rgt'> </th>
|
||||||
|
</tr>
|
||||||
<tr className='main'>
|
<tr className='main'>
|
||||||
<th style={{ height: '4.1em', padding: '2px 0.4em 1px' }} className='sortable le rgt' onClick={sortShips('name')}>{translate('ship')}</th>
|
<th className='sortable le rgt' onClick={sortShips('name')}>{translate('ship')}</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th className='le rgt invisible'>{units['m/s']}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody onMouseLeave={this._highlightShip.bind(this, null)}>
|
<tbody onMouseLeave={this._highlightShip.bind(this, null)}>
|
||||||
|
|||||||
@@ -37,6 +37,10 @@ thead {
|
|||||||
&.rgt {
|
&.rgt {
|
||||||
border-right: 1px solid @primary-bg;
|
border-right: 1px solid @primary-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.invisible {
|
||||||
|
color: @primary-disabled;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user