From e870d90b728b54b8ba2b5cb741536cfd288917f4 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Thu, 15 Aug 2019 10:30:48 +0200 Subject: [PATCH] simplify info link handling --- scm-ui/src/components/InfoBox.js | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/scm-ui/src/components/InfoBox.js b/scm-ui/src/components/InfoBox.js index 794ad24684..3f1a4fe32a 100644 --- a/scm-ui/src/components/InfoBox.js +++ b/scm-ui/src/components/InfoBox.js @@ -25,16 +25,8 @@ const styles = { marginLeft: "1.5em" }, link: { - width: "60%", - height: "200px", - position: "absolute", - cursor: "pointer", - zIndex: 20 - }, - "@media (max-width: 768px)": { - link: { - width: "100%" - } + display: "block", + marginBottom: "1.5rem" } }; @@ -58,28 +50,18 @@ class InfoBox extends React.Component { return (
-

- {title} -

+

{title}

{summary}

); }; - - createLink = () => { - const { item, classes } = this.props; - // eslint-disable-next-line jsx-a11y/anchor-has-content - return ; - }; - render() { - const { type, classes, t } = this.props; + const { item, type, classes, t } = this.props; const icon = type === "plugin" ? "puzzle-piece" : "star"; return ( - <> - {this.createLink()} +
{
{this.renderBody()}
- +
); }