bugfix: badge style

This commit is contained in:
Elyor Djalilov 2022-11-04 18:08:01 +05:00
parent d7abe3b9da
commit 0ea27d2ba8
3 changed files with 7 additions and 4 deletions

View File

@ -123,7 +123,6 @@ const StyledSimpleFilesRow = styled(Row)`
.badges {
display: flex;
align-items: center;
margin-top: 2px;
margin-bottom: 26px;
}

View File

@ -23,7 +23,7 @@ const Badge = (props) => {
borderRadius,
padding,
maxWidth,
lineHeight,
height,
isHovered,
label,
} = props;
@ -40,7 +40,7 @@ const Badge = (props) => {
borderRadius={borderRadius}
padding={padding}
maxWidth={maxWidth}
lineHeight={lineHeight}
height={height}
>
<StyledText
textAlign="center"
@ -95,7 +95,7 @@ Badge.defaultProps = {
borderRadius: "11px",
padding: "0 5px",
maxWidth: "50px",
lineHeight: "1.78",
height: "16px",
isHovered: false,
noHover: false,
};

View File

@ -37,9 +37,13 @@ const StyledInner = styled.div`
border-radius: ${(props) => props.borderRadius};
padding: ${(props) => props.padding};
max-width: ${(props) => props.maxWidth};
height: ${(props) => props.height};
text-align: center;
user-select: none;
line-height: ${(props) => props.lineHeight};
display: flex;
align-items: center;
justify-content: center;
`;
StyledInner.defaultProps = { theme: Base };