Web: Fieles: VersionHistoryPanel: styled refactoring

This commit is contained in:
Artem Tarasov 2020-11-13 11:07:01 +03:00
parent 95a6f2ea47
commit a38abc4ff4
2 changed files with 5 additions and 8 deletions

View File

@ -36,20 +36,13 @@ const StyledRow = styled(Row)`
.version_badge-text {
position: absolute;
left: 6px;
@media ${tablet} {
left: -2px;
}
}
margin-left: 0px;
margin-top: ${(props) => (props.showEditPanel ? "13px" : "-2px")};
@media ${tablet} {
margin-left: 0px;
margin-top: 0px;
.version_badge-text {
left: 6px;
}
}
}
@ -80,10 +73,10 @@ const StyledRow = styled(Row)`
.version_edit-comment {
display: block;
margin-left: 63px;
@media ${tablet} {
display: none;
margin-left: 63px;
}
}

View File

@ -59,6 +59,7 @@ const StyledAsidePanel = styled.div`
`;
const StyledVersionHistoryPanel = styled.div`
${PanelStyles}
.version-history-modal-dialog {
transform: translateX(${(props) => (props.visible ? "0" : "720px")});
width: 720px;
@ -82,6 +83,9 @@ const StyledVersionHistoryPanel = styled.div`
.version-comment-wrapper {
margin-left: 79px;
}
.version_edit-comment {
margin-left: 70px;
}
`;
const StyledAddUsersPanelPanel = styled.div`