1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-28 06:48:45 +09:00

Fix modal items cannot scroll on touch devices (#10605)

This commit is contained in:
kedama 2019-04-22 21:55:50 +09:00 committed by Eugen Rochko
parent bdec58b514
commit d763d39d26
2 changed files with 6 additions and 1 deletions

View File

@ -64,7 +64,7 @@ export default class ActionsModal extends ImmutablePureComponent {
<div className='modal-root__modal actions-modal'>
{status}
<ul>
<ul className={classNames({ 'with-status': !!status })}>
{this.props.actions.map(this.renderAction)}
</ul>
</div>

View File

@ -4085,6 +4085,11 @@ a.status-card.compact:hover {
ul {
overflow-y: auto;
flex-shrink: 0;
max-height: 80vh;
&.with-status {
max-height: calc(80vh - 75px);
}
li:empty {
margin: 0;