From 0d2eab88daf603d216a2e4deba6bb4192791d8ad Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 6 Aug 2018 14:26:20 -0400 Subject: [PATCH] add header to recommended content and decrease autoplay size --- .../component/common/form-components/form-row.jsx | 11 ++++++++++- src/renderer/component/recommendedContent/view.jsx | 5 +++-- src/renderer/scss/component/_form-field.scss | 9 +++++++++ src/renderer/scss/component/_toggle.scss | 13 +++++++------ 4 files changed, 29 insertions(+), 9 deletions(-) diff --git a/src/renderer/component/common/form-components/form-row.jsx b/src/renderer/component/common/form-components/form-row.jsx index f694c305e..3bd93252d 100644 --- a/src/renderer/component/common/form-components/form-row.jsx +++ b/src/renderer/component/common/form-components/form-row.jsx @@ -9,6 +9,7 @@ type Props = { verticallyCentered?: boolean, stretch?: boolean, alignRight?: boolean, + spaceBetween?: boolean, }; export class FormRow extends React.PureComponent { @@ -17,7 +18,14 @@ export class FormRow extends React.PureComponent { }; render() { - const { centered, children, padded, verticallyCentered, stretch, alignRight } = this.props; + const { + children, + padded, + verticallyCentered, + stretch, + alignRight, + spaceBetween, + } = this.props; return (
{ 'form-row--vertically-centered': verticallyCentered, 'form-row--stretch': stretch, 'form-row--right': alignRight, + 'form-row--space-between': spaceBetween, })} > {children} diff --git a/src/renderer/component/recommendedContent/view.jsx b/src/renderer/component/recommendedContent/view.jsx index 12b7107a1..6305b7861 100644 --- a/src/renderer/component/recommendedContent/view.jsx +++ b/src/renderer/component/recommendedContent/view.jsx @@ -66,11 +66,12 @@ export default class RecommendedContent extends React.PureComponent - + + Related