bugfix: badge style
This commit is contained in:
parent
d7abe3b9da
commit
0ea27d2ba8
@ -123,7 +123,6 @@ const StyledSimpleFilesRow = styled(Row)`
|
||||
.badges {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 2px;
|
||||
margin-bottom: 26px;
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user