fixed distance between button icon and label

This commit is contained in:
SleepingFox 2020-04-12 15:10:47 -04:00 committed by Sean Yesmunt
parent 6cc301dd35
commit eb64079b9e
2 changed files with 2 additions and 6 deletions

View file

@ -95,7 +95,7 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
{icon && <Icon icon={icon} iconColor={iconColor} size={iconSize} />}
{label && (
<div style={{ position: 'relative' }}>
<div className="button__label" style={{ position: 'relative' }}>
<div
style={{
position: 'relative',
@ -114,9 +114,7 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
transform: `translate(-50%, -50%)`,
}}
>
<span className="button__label" style={{ visibility: 'visible' }}>
{label}
</span>
<span style={{ visibility: 'visible' }}>{label}</span>
</div>
</span>
</div>

View file

@ -52,8 +52,6 @@ export default function SubscribeButton(props: Props) {
longestStr = __('Unfollow');
}
longestStr = longestStr + '-';
return permanentUrl ? (
<Button
ref={buttonRef}