From eb64079b9e4cce9a80c51b79ee3d73c2446a8e43 Mon Sep 17 00:00:00 2001 From: SleepingFox Date: Sun, 12 Apr 2020 15:10:47 -0400 Subject: [PATCH] fixed distance between button icon and label --- ui/component/button/view.jsx | 6 ++---- ui/component/subscribeButton/view.jsx | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/component/button/view.jsx b/ui/component/button/view.jsx index 1357bfdab..a631763ad 100644 --- a/ui/component/button/view.jsx +++ b/ui/component/button/view.jsx @@ -95,7 +95,7 @@ const Button = forwardRef((props: Props, ref: any) => { {icon && } {label && ( -
+
((props: Props, ref: any) => { transform: `translate(-50%, -50%)`, }} > - - {label} - + {label}
diff --git a/ui/component/subscribeButton/view.jsx b/ui/component/subscribeButton/view.jsx index fc6cf60df..6aa00ab7b 100644 --- a/ui/component/subscribeButton/view.jsx +++ b/ui/component/subscribeButton/view.jsx @@ -52,8 +52,6 @@ export default function SubscribeButton(props: Props) { longestStr = __('Unfollow'); } - longestStr = longestStr + '-'; - return permanentUrl ? (