]> cat aescling's git repositories - mastodon.git/commitdiff
Fixes #244 to make search results scrollable
authorkibigo! <marrus-sh@users.noreply.github.com>
Fri, 15 Dec 2017 20:49:23 +0000 (12:49 -0800)
committerkibigo! <marrus-sh@users.noreply.github.com>
Fri, 15 Dec 2017 20:49:23 +0000 (12:49 -0800)
app/javascript/flavours/glitch/features/compose/index.js

index 02b97ad00e233b22c157c352284715378ec33154..63c9500b167115daa92f94cfb67962f1653e6130 100644 (file)
@@ -112,7 +112,7 @@ export default class Compose extends React.PureComponent {
 
           <Motion defaultStyle={{ x: -100 }} style={{ x: spring(showSearch ? 0 : -100, { stiffness: 210, damping: 20 }) }}>
             {({ x }) =>
-              <div className='drawer__inner darker' style={{ transform: `translateX(${x}%)`, visibility: x === -100 ? 'hidden' : 'visible' }}>
+              <div className='drawer__inner darker scrollable optionally-scrollable' style={{ transform: `translateX(${x}%)`, visibility: x === -100 ? 'hidden' : 'visible' }}>
                 <SearchResultsContainer />
               </div>
             }