Skip to content

Commit

Permalink
Fix unwanted content warning gap in CSS (#5436)
Browse files Browse the repository at this point in the history
Fix #5356
  • Loading branch information
Gargron committed Oct 17, 2017
1 parent 484208c commit 05686cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/mastodon/components/status_content.js
Expand Up @@ -122,6 +122,7 @@ export default class StatusContent extends React.PureComponent {
const directionStyle = { direction: 'ltr' };
const classNames = classnames('status__content', {
'status__content--with-action': this.props.onClick && this.context.router,
'status__content--with-spoiler': status.get('spoiler_text').length > 0,
});

if (isRtl(status.get('search_index'))) {
Expand Down
8 changes: 8 additions & 0 deletions app/javascript/styles/components.scss
Expand Up @@ -511,6 +511,14 @@
overflow: hidden;
white-space: pre-wrap;

&.status__content--with-spoiler {
white-space: normal;

.status__content__text {
white-space: pre-wrap;
}
}

.emojione {
width: 18px;
height: 18px;
Expand Down

0 comments on commit 05686cc

Please sign in to comment.