Web:Common:Components: fix navigation layouts
This commit is contained in:
parent
2f218e6de2
commit
7bc5c357c8
@ -105,6 +105,8 @@ const Navigation = ({
|
||||
getContextOptionsFolder={getContextOptionsFolder}
|
||||
getContextOptionsPlus={getContextOptionsPlus}
|
||||
toggleDropBox={toggleDropBox}
|
||||
toggleInfoPanel={toggleInfoPanel}
|
||||
isInfoPanelVisible={isInfoPanelVisible}
|
||||
onClickAvailable={onClickAvailable}
|
||||
/>
|
||||
)}
|
||||
|
@ -9,6 +9,8 @@ const StyledContainer = styled.div`
|
||||
grid-template-columns: ${(props) =>
|
||||
props.isRootFolder ? "auto 1fr" : "29px auto 1fr"};
|
||||
|
||||
padding: ${(props) => (props.isDropBox ? "10px 0 5px" : "10px 0 11px")};
|
||||
|
||||
.arrow-button {
|
||||
width: 17px;
|
||||
min-width: 17px;
|
||||
@ -16,24 +18,25 @@ const StyledContainer = styled.div`
|
||||
|
||||
@media ${tablet} {
|
||||
width: 100%;
|
||||
padding: ${(props) => (props.isDropBox ? "16px 0 5px" : "16px 0 0px")};
|
||||
padding: ${(props) => (props.isDropBox ? "14px 0 5px" : "14px 0 15px")};
|
||||
}
|
||||
${isMobile &&
|
||||
css`
|
||||
width: 100%;
|
||||
padding: ${(props) =>
|
||||
props.isDropBox ? "16px 0 5px" : " 16px 0 0px"} !important;
|
||||
props.isDropBox ? "12px 0 5px" : " 12px 0 13px"} !important;
|
||||
`}
|
||||
|
||||
@media ${mobile} {
|
||||
height: 53px;
|
||||
padding: ${(props) =>
|
||||
props.isDropBox ? "10px 0 5px" : "10px 0 11px"} !important;
|
||||
}
|
||||
|
||||
${isMobileOnly &&
|
||||
css`
|
||||
width: 100% !important;
|
||||
padding: ${(props) =>
|
||||
props.isDropBox ? "18px 0 5px" : "18px 0 0"} !important;
|
||||
props.isDropBox ? "10px 0 5px" : "10px 0 11px"} !important;
|
||||
`}
|
||||
`;
|
||||
|
||||
|
@ -26,7 +26,7 @@ const StyledBox = styled.div`
|
||||
top: 0px;
|
||||
left: ${isMobile ? "-16px" : "-20px"};
|
||||
|
||||
padding: ${isMobile ? "0 16px 0 16px" : "0 20px"};
|
||||
padding: ${isMobile ? "0 16px " : "0 20px"};
|
||||
|
||||
width: ${(props) => props.dropBoxWidth}px;
|
||||
|
||||
@ -85,7 +85,9 @@ const DropBox = React.forwardRef(
|
||||
getContextOptionsFolder,
|
||||
getContextOptionsPlus,
|
||||
toggleDropBox,
|
||||
toggleInfoPanel,
|
||||
onClickAvailable,
|
||||
isInfoPanelVisible,
|
||||
},
|
||||
ref
|
||||
) => {
|
||||
@ -141,6 +143,8 @@ const DropBox = React.forwardRef(
|
||||
canCreate={canCreate}
|
||||
getContextOptionsFolder={getContextOptionsFolder}
|
||||
getContextOptionsPlus={getContextOptionsPlus}
|
||||
toggleInfoPanel={toggleInfoPanel}
|
||||
isInfoPanelVisible={isInfoPanelVisible}
|
||||
/>
|
||||
</StyledContainer>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user