diff --git a/app/javascript/mastodon/components/autosuggest_textarea.js b/app/javascript/mastodon/components/autosuggest_textarea.js index 869ecad6b..b3d62ec3a 100644 --- a/app/javascript/mastodon/components/autosuggest_textarea.js +++ b/app/javascript/mastodon/components/autosuggest_textarea.js @@ -79,6 +79,7 @@ class AutosuggestTextarea extends ImmutablePureComponent { } // auto-resize textarea + e.target.style.height = 'auto'; e.target.style.height = `${e.target.scrollHeight}px`; this.props.onChange(e); @@ -197,7 +198,7 @@ class AutosuggestTextarea extends ImmutablePureComponent { style={style} /> -
0 && !suggestionsHidden) ? 'block' : 'none' }} className='autosuggest-textarea__suggestions'> +
{suggestions.map((suggestion, i) => (
+ ); diff --git a/app/javascript/mastodon/components/column_collapsable.js b/app/javascript/mastodon/components/column_collapsable.js index a54f76932..44ec63af8 100644 --- a/app/javascript/mastodon/components/column_collapsable.js +++ b/app/javascript/mastodon/components/column_collapsable.js @@ -35,7 +35,7 @@ class ColumnCollapsable extends React.PureComponent {
-
+
{children}
diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index b229e5748..c2fbbd4b9 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -36,18 +36,15 @@ class IconButton extends React.PureComponent { } render () { - let style = { + const style = { fontSize: `${this.props.size}px`, width: `${this.props.size * 1.28571429}px`, height: `${this.props.size * 1.28571429}px`, lineHeight: `${this.props.size}px`, - ...this.props.style + ...this.props.style, + ...(this.props.active ? this.props.activeStyle : {}) }; - if (this.props.active) { - style = { ...style, ...this.props.activeStyle }; - } - const classes = ['icon-button']; if (this.props.active) { diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js index 439588735..10389751e 100644 --- a/app/javascript/mastodon/components/media_gallery.js +++ b/app/javascript/mastodon/components/media_gallery.js @@ -173,7 +173,7 @@ class MediaGallery extends React.PureComponent { return (
-
+
diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js index fd12cc78a..4d002607d 100644 --- a/app/javascript/mastodon/components/status_content.js +++ b/app/javascript/mastodon/components/status_content.js @@ -117,15 +117,15 @@ class StatusContent extends React.PureComponent { return (
- {mentionsPlaceholder} -