Improved modification menu design

This commit is contained in:
Felix Linker
2018-09-15 01:54:17 +02:00
parent 93d8f15f26
commit 7f5181a9c7
2 changed files with 15 additions and 6 deletions

View File

@@ -73,11 +73,14 @@ export default class Modification extends TranslatedComponent {
}
return (
<div onBlur={this._updateFinished.bind(this)} className={'cb'} key={name} ref={ modItem => this.props.modItems[name] = modItem }>
<div className={'cb'}>{translate(name, m.grp)}</div>
<div onBlur={this._updateFinished.bind(this)} key={name}
className={cn('cb', 'modification-container')}
ref={ modItem => this.props.modItems[name] = modItem }>
<span className={'cb'}>{translate(name, m.grp)}</span>
<span className={'header-adjuster'}></span>
<table style={{ width: '100%' }}>
<tbody>
<tr className={'modification-container'}>
<tr>
<td className={'input-container'}>
<span>
{this.props.editable ?

View File

@@ -38,18 +38,19 @@
}
.modification-container {
@input-container-width: 75%;
td {
width: 35%;
width: 100% - @input-container-width;
text-align: center;
}
.input-container {
width: 65%;
width: @input-container-width;
text-align: right;
}
input {
width: 70%;
width: 80%;
}
.unit-container {
@@ -58,6 +59,11 @@
text-align: left;
display: inline-block;
}
.header-adjuster {
width: 100% - @input-container-width;
display: inline-block;
}
}
.cb {