diff options
author | David Yip <yipdw@member.fsf.org> | 2017-10-19 10:59:50 -0500 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2017-10-19 10:59:50 -0500 |
commit | 9423553e5cbf49d1090adce9d525028c26e30133 (patch) | |
tree | 564d32ccf5c209d902b0ef5a713d1476576576a9 | |
parent | 90770f6d59624f8f1d8e43fa9f86ab92f130ee8b (diff) |
Make the compose area optionally scrollable.
On desktop, the compose text box grows to accommodate the content. On mobile, the text box does not grow to accommodate text context, but does grow to accommodate images. It is possible in both cases to overflow the available area, which makes accessing other UI elements (e.g. visibility setttings) difficult. This commit makes the compose area optionally scrollable, which allows those UI elements to remain available even if they go off-screen.
-rw-r--r-- | app/javascript/mastodon/features/compose/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/compose/index.js b/app/javascript/mastodon/features/compose/index.js index 41a97d550..a487f2c89 100644 --- a/app/javascript/mastodon/features/compose/index.js +++ b/app/javascript/mastodon/features/compose/index.js @@ -105,7 +105,7 @@ export default class Compose extends React.PureComponent { <SearchContainer /> <div className='drawer__pager'> - <div className='drawer__inner' onFocus={this.onFocus}> + <div className='drawer__inner scrollable optionally-scrollable' onFocus={this.onFocus}> <NavigationContainer onClose={this.onBlur} /> <ComposeFormContainer /> </div> |