Commit 32926ebc authored by hh1966's avatar hh1966
Browse files

Fix amount padding for inlineEdit

parent 1a58b5bd
Pipeline #162197 failed with stages
......@@ -502,7 +502,7 @@ const SampleAmountInput = ({ sample, inline, disabled, onChange }) => {
// 4, 'Amount', 'massMgInput', isDisabled, ''));
// } else {
content.push(
<td key="amount_g">
<td key="amount_g" className="amount-input">
<SampleNumeralInput sample={sample} inline={inline} disabled={disabled} onChange={onChange}
field="amount_g" unit="g" prefixes={['m', 'n']} precision={4} />
</td>
......@@ -510,7 +510,7 @@ const SampleAmountInput = ({ sample, inline, disabled, onChange }) => {
if (!sample.contains_residues) {
content.push(
<td key="amount_l">
<td key="amount_l" className="amount-input">
<SampleNumeralInput sample={sample} inline={inline} disabled={disabled} onChange={onChange}
field="amount_l" unit="l" prefixes={['m', 'u', 'n']} precision={5} block={volumeBlocked} />
</td>
......@@ -518,7 +518,7 @@ const SampleAmountInput = ({ sample, inline, disabled, onChange }) => {
}
content.push(
<td key="amount_mol">
<td key="amount_mol" className="amount-input">
<SampleNumeralInput sample={sample} inline={inline} disabled={disabled} onChange={onChange}
field="amount_mol" unit="mol" prefixes={['m', 'n']} precision={4} />
</td>
......@@ -526,7 +526,7 @@ const SampleAmountInput = ({ sample, inline, disabled, onChange }) => {
if (sample.contains_residues) {
content.push(
<td key="defined_part_amount">
<td key="defined_part_amount" className="amount-input">
<SampleNumeralInput sample={sample} inline={inline} disabled={true} onChange={onChange}
field="defined_part_amount" unit="g" prefixes={['m', 'n']} precision={4} title="Weight of the defined part" />
</td>
......
......@@ -165,6 +165,14 @@ th.drag {
text-align: right;
}
}
.amount-input {
padding-right: 4px;
&:last-child {
padding-right: 0;
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment