mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-31 09:21:27 +00:00
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} />}
|
{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>
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Add table
Reference in a new issue