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()}
- +
); }