From 7c1ca0c37b7e68bd4e388afb3bca55d2b71fd2ad Mon Sep 17 00:00:00 2001 From: Hanage999 Date: Sat, 1 Jun 2019 13:59:21 +0900 Subject: Center 2-columns layout without side effect (#10915) --- app/javascript/styles/mastodon/components.scss | 1 - 1 file changed, 1 deletion(-) (limited to 'app/javascript') diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 425a9b96f..e234c39e1 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -1794,7 +1794,6 @@ a.account__display-name { height: 100%; &__pane { - flex: 1 1 auto; height: 100%; overflow: hidden; pointer-events: none; -- cgit From d93b82af87de90eaa29eb54a423722fb9fb45b38 Mon Sep 17 00:00:00 2001 From: Takeshi Umeda Date: Sun, 2 Jun 2019 17:05:54 +0900 Subject: Improvement variable height in single column layout (#10917) * Improvement variable height of compose and navigation panel in single column layout * Fix wrong quotes and missing commas --- .../mastodon/components/autosuggest_textarea.js | 56 ++++++++++++---------- .../features/compose/components/compose_form.js | 40 ++++++++-------- .../features/ui/components/compose_panel.js | 3 -- app/javascript/styles/mastodon/components.scss | 54 +++++++++++++++++---- 4 files changed, 95 insertions(+), 58 deletions(-) (limited to 'app/javascript') diff --git a/app/javascript/mastodon/components/autosuggest_textarea.js b/app/javascript/mastodon/components/autosuggest_textarea.js index f3fb7fa8b..5cad43e82 100644 --- a/app/javascript/mastodon/components/autosuggest_textarea.js +++ b/app/javascript/mastodon/components/autosuggest_textarea.js @@ -189,7 +189,7 @@ export default class AutosuggestTextarea extends ImmutablePureComponent { } render () { - const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus } = this.props; + const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus, children } = this.props; const { suggestionsHidden } = this.state; const style = { direction: 'ltr' }; @@ -197,34 +197,38 @@ export default class AutosuggestTextarea extends ImmutablePureComponent { style.direction = 'rtl'; } - return ( -
-