From 71b74d4529e73cceb046a6250e35bf6297746a18 Mon Sep 17 00:00:00 2001 From: Yasuaki Uechi Date: Sat, 8 Feb 2020 19:17:02 +0900 Subject: [PATCH] fix: tooltip position --- web/src/components/cards/core.tsx | 42 ++++++++++++++++--------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/web/src/components/cards/core.tsx b/web/src/components/cards/core.tsx index e2bb19e..5bd1fb6 100644 --- a/web/src/components/cards/core.tsx +++ b/web/src/components/cards/core.tsx @@ -198,13 +198,13 @@ export const Result: React.FC<{ ? COLORS.available : COLORS.unavailable; return ( - - + + {icon} @@ -220,8 +220,8 @@ export const Result: React.FC<{ ) : null} - - + + ); }; @@ -256,23 +256,23 @@ class ErrorBoundary extends React.Component< render() { if (this.state.hasError) { return ( - - + + Error - - + + ); } return this.props.children; @@ -340,6 +340,8 @@ const Button = styled.div` `; const ResultContainer = styled.div` + display: flex; + align-items: center; padding: 4px 0; `;