Skip to content

Commit

Permalink
fix markup for subscribe block for long description
Browse files Browse the repository at this point in the history
  • Loading branch information
Mavrin authored and umputun committed Mar 7, 2020
1 parent f0eeb37 commit ea4e95c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
display: flex;
align-items: center;
padding-top: 8px;
flex-wrap: wrap;
justify-content: space-between;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.comment-form__rss {
margin-left: auto;
align-self: flex-end;
margin-top: 8px;
font-size: 12px;
line-height: 1;
text-align: right;
}
30 changes: 16 additions & 14 deletions frontend/app/components/comment-form/comment-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,21 +444,23 @@ export class CommentForm extends Component<Props, State> {
))}

<div className="comment-form__actions">
{!props.simpleView && (
<Button
kind="secondary"
theme={props.theme}
size="large"
mix="comment-form__button"
disabled={isDisabled}
onClick={this.getPreview}
>
<FormattedMessage id="commentForm.preview" defaultMessage="Preview" />
<div>
{!props.simpleView && (
<Button
kind="secondary"
theme={props.theme}
size="large"
mix="comment-form__button"
disabled={isDisabled}
onClick={this.getPreview}
>
<FormattedMessage id="commentForm.preview" defaultMessage="Preview" />
</Button>
)}
<Button kind="primary" size="large" mix="comment-form__button" type="submit" disabled={isDisabled}>
{label}
</Button>
)}
<Button kind="primary" size="large" mix="comment-form__button" type="submit" disabled={isDisabled}>
{label}
</Button>
</div>

{!props.simpleView && props.mode === 'main' && (
<div className="comment-form__rss">
Expand Down

0 comments on commit ea4e95c

Please sign in to comment.