Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gy4443
chemotion_eln_server
Commits
eb9d6fa0
Commit
eb9d6fa0
authored
Oct 14, 2015
by
Marco Sehrer
Browse files
Pagination-Fix + Reaction Style
parent
a866a8ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/components/ReactionDetails.js
View file @
eb9d6fa0
...
...
@@ -75,11 +75,7 @@ export default class ReactionDetails extends Component {
render
()
{
const
{
reaction
}
=
this
.
state
;
const
svgContainerStyle
=
{
position
:
'
relative
'
,
padding
:
0
,
paddingBottom
:
'
20%
'
,
height
:
0
,
width
:
'
100%
'
textAlign
:
'
center
'
};
const
submitLabel
=
(
reaction
&&
reaction
.
isNew
)
?
"
Create
"
:
"
Save
"
;
return
(
...
...
@@ -92,7 +88,7 @@ export default class ReactionDetails extends Component {
<
/Col
>
<
Col
md
=
{
9
}
>
<
div
style
=
{
svgContainerStyle
}
>
<
SVG
key
=
{
reaction
.
svgPath
}
src
=
{
reaction
.
svgPath
}
/
>
<
SVG
key
=
{
reaction
.
svgPath
}
src
=
{
reaction
.
svgPath
}
className
=
'
reaction-details
'
/>
<
/div
>
<
/Col
>
<
/Row
>
...
...
app/assets/stylesheets/molecules.css
View file @
eb9d6fa0
...
...
@@ -37,7 +37,8 @@
.reaction
svg
{
height
:
90px
;
max-height
:
90px
;
width
:
90%
;
margin-left
:
10px
;
}
...
...
@@ -45,3 +46,7 @@
stroke
:
white
;
fill
:
white
;
}
.reaction-details
svg
{
width
:
100%
}
Write
Preview
Supports
Markdown
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