Merge pull request #138 from ONLYOFFICE/bugifx/social-button
bugfix/social-button
This commit is contained in:
commit
8846da3412
@ -17,20 +17,16 @@ class SocialButton extends React.Component {
|
||||
this.props;
|
||||
return (
|
||||
<StyledSocialButton isConnect={isConnect} {...otherProps}>
|
||||
<div>
|
||||
{IconComponent ? (
|
||||
<IconComponent className="iconWrapper" />
|
||||
) : (
|
||||
<ReactSVG className="iconWrapper" src={iconName} />
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
{label && (
|
||||
<Text as="span" className="social_button_text">
|
||||
{label}
|
||||
</Text>
|
||||
)}
|
||||
</div>
|
||||
{IconComponent ? (
|
||||
<IconComponent className="iconWrapper" />
|
||||
) : (
|
||||
<ReactSVG className="iconWrapper" src={iconName} />
|
||||
)}
|
||||
{label && (
|
||||
<Text as="div" className="social_button_text">
|
||||
{label}
|
||||
</Text>
|
||||
)}
|
||||
</StyledSocialButton>
|
||||
);
|
||||
}
|
||||
|
@ -152,6 +152,15 @@ const StyledSocialButton = styled(ButtonWrapper).attrs((props) => ({
|
||||
overflow: ${(props) => props.theme.socialButton.text.overflow};
|
||||
text-overflow: ${(props) => props.theme.socialButton.text.textOverflow};
|
||||
white-space: ${(props) => props.theme.socialButton.text.whiteSpace};
|
||||
|
||||
${(props) =>
|
||||
props.interfaceDirection === "rtl"
|
||||
? css`
|
||||
padding-left: 16px;
|
||||
`
|
||||
: css`
|
||||
padding-right: 16px;
|
||||
`}
|
||||
}
|
||||
|
||||
svg {
|
||||
|
Loading…
Reference in New Issue
Block a user