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

View file

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