]> cat aescling's git repositories - mastodon.git/commitdiff
Make the compose area optionally scrollable.
authorDavid Yip <yipdw@member.fsf.org>
Thu, 19 Oct 2017 15:59:50 +0000 (10:59 -0500)
committerDavid Yip <yipdw@member.fsf.org>
Thu, 19 Oct 2017 15:59:50 +0000 (10:59 -0500)
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.

app/javascript/mastodon/features/compose/index.js

index 41a97d550ec02ecaa19417f54e0ec152ee94c03b..a487f2c89d6d71c825f02f1eb9c9555525d22bf9 100644 (file)
@@ -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>
This page took 0.033229 seconds and 3 git commands to generate.