From dcf1fd84c5948a8a95d1235fb3007616b117260d Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Mon, 22 Jun 2020 11:27:05 +0200 Subject: [PATCH] remove useless class --- scm-ui/ui-components/src/Tooltip.tsx | 3 +- .../src/__snapshots__/storyshots.test.ts.snap | 328 ++++++++++++++---- 2 files changed, 261 insertions(+), 70 deletions(-) diff --git a/scm-ui/ui-components/src/Tooltip.tsx b/scm-ui/ui-components/src/Tooltip.tsx index b358c6382f..98dce960d2 100644 --- a/scm-ui/ui-components/src/Tooltip.tsx +++ b/scm-ui/ui-components/src/Tooltip.tsx @@ -38,9 +38,8 @@ class Tooltip extends React.Component { render() { const { className, message, location, children } = this.props; - const multiline = message.length > 60 ? "is-multiline" : ""; return ( - + {children} ); diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index 79430a7441..a1db5dadc0 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -17281,7 +17281,7 @@ exports[`Storyshots Diff File Controls 1`] = ` className="control" > -
-
+ - - + right - -
-
+ + +
+
+ - - + top - -
-
+ + +
+
+ - - + left - -
-
+ + +
+
+ - - + bottom - -
+ + + +
+ +`; + +exports[`Storyshots Tooltip Multiline 1`] = ` +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+`; + +exports[`Storyshots Tooltip Short Multiline 1`] = ` +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + +
`;