fixed distance between button icon and label
This commit is contained in:
parent
6cc301dd35
commit
eb64079b9e
2 changed files with 2 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -52,8 +52,6 @@ export default function SubscribeButton(props: Props) {
|
|||
longestStr = __('Unfollow');
|
||||
}
|
||||
|
||||
longestStr = longestStr + '-';
|
||||
|
||||
return permanentUrl ? (
|
||||
<Button
|
||||
ref={buttonRef}
|
||||
|
|
Loading…
Add table
Reference in a new issue