mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-06 02:15:38 +01:00
[Glitch] Fix modal items cannot scroll on touch devices
Port d763d39d26
to glitch-soc
This commit is contained in:
parent
a9eaa780f5
commit
039e35560c
@ -114,7 +114,7 @@ export default class ActionsModal extends ImmutablePureComponent {
|
|||||||
<div className='modal-root__modal actions-modal'>
|
<div className='modal-root__modal actions-modal'>
|
||||||
{status}
|
{status}
|
||||||
|
|
||||||
<ul>
|
<ul className={classNames({ 'with-status': !!status })}>
|
||||||
{this.props.actions.map(this.renderAction)}
|
{this.props.actions.map(this.renderAction)}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -621,6 +621,11 @@
|
|||||||
ul {
|
ul {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
max-height: 80vh;
|
||||||
|
|
||||||
|
&.with-status {
|
||||||
|
max-height: calc(80vh - 75px);
|
||||||
|
}
|
||||||
|
|
||||||
li:empty {
|
li:empty {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user