Skip to content
Snippets Groups Projects
Commit bec0f8ac authored by chris's avatar chris
Browse files

fix

parent dd7c0768
No related branches found
No related tags found
1 merge request!160add track change plugin through service
...@@ -14,10 +14,10 @@ const CommentBoxStyled = styled.div` ...@@ -14,10 +14,10 @@ const CommentBoxStyled = styled.div`
flex-direction: column; flex-direction: column;
margin-top: 10px; margin-top: 10px;
border: 1px solid #ffab20; border: 1px solid #ffab20;
position: relative; position: absolute;
transition: ${({ state }) => 'top 1s, opacity 1.5s, left 1s'}; transition: ${({ state }) => 'top 1s, opacity 1.5s, left 1s'};
top: ${props => (props.top ? `${props.top}px` : 0)}; top: ${props => (props.top ? `${props.top}px` : 0)};
left: ${props => (props.active ? `${-20}px` : `0%`)}; left: ${props => (props.active ? `${63}%` : `${65}%`)};
max-width: 250px; max-width: 250px;
opacity: ${({ state }) => { opacity: ${({ state }) => {
switch (state) { switch (state) {
......
...@@ -10,11 +10,11 @@ const TrackChangeBoxStyled = styled.div` ...@@ -10,11 +10,11 @@ const TrackChangeBoxStyled = styled.div`
flex-direction: column; flex-direction: column;
margin-top: 10px; margin-top: 10px;
border: 1px solid blue; border: 1px solid blue;
position: relative; position: absolute;
transition: ${({ state }) => 'top 1s, opacity 1.5s, left 1s'}; transition: ${({ state }) => 'top 1s, opacity 1.5s, left 1s'};
top: ${props => (props.top ? `${props.top}px` : 0)}; top: ${props => (props.top ? `${props.top}px` : 0)};
left: ${props => (props.active ? `${-20}px` : `0%`)}; left: ${props => (props.active ? `${63}%` : `${65}%`)};
max-width: 250px; max-width: 450px;
opacity: ${({ state }) => { opacity: ${({ state }) => {
switch (state) { switch (state) {
case 'exited': case 'exited':
......
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