Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hh1966
chemotion_eln_server
Commits
32926ebc
Commit
32926ebc
authored
Aug 05, 2021
by
hh1966
Browse files
Fix amount padding for inlineEdit
parent
1a58b5bd
Pipeline
#162197
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/components/SampleInput.js
View file @
32926ebc
...
...
@@ -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
>
...
...
app/assets/stylesheets/elements_table.scss
View file @
32926ebc
...
...
@@ -165,6 +165,14 @@ th.drag {
text-align
:
right
;
}
}
.amount-input
{
padding-right
:
4px
;
&
:last-child
{
padding-right
:
0
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment