fix(MoreTab): Fix languages not being scrollable on mobile
This commit is contained in:
parent
b1eff72394
commit
1b1d650b75
|
@ -10,6 +10,7 @@ import React from 'react';
|
||||||
import { AbstractDialogTab } from '../../../base/dialog';
|
import { AbstractDialogTab } from '../../../base/dialog';
|
||||||
import type { Props as AbstractDialogTabProps } from '../../../base/dialog';
|
import type { Props as AbstractDialogTabProps } from '../../../base/dialog';
|
||||||
import { translate } from '../../../base/i18n';
|
import { translate } from '../../../base/i18n';
|
||||||
|
import TouchmoveHack from '../../../chat/components/web/TouchmoveHack';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The type of the React {@code Component} props of {@link MoreTab}.
|
* The type of the React {@code Component} props of {@link MoreTab}.
|
||||||
|
@ -185,21 +186,23 @@ class MoreTab extends AbstractDialogTab<Props, State> {
|
||||||
{ t('settings.language') }
|
{ t('settings.language') }
|
||||||
</div>
|
</div>
|
||||||
<div className = 'dropdown-menu'>
|
<div className = 'dropdown-menu'>
|
||||||
<DropdownMenu
|
<TouchmoveHack isModal = { true }>
|
||||||
isOpen = { this.state.isLanguageSelectOpen }
|
<DropdownMenu
|
||||||
onOpenChange = { this._onLanguageDropdownOpenChange }
|
isOpen = { this.state.isLanguageSelectOpen }
|
||||||
shouldFitContainer = { true }
|
onOpenChange = { this._onLanguageDropdownOpenChange }
|
||||||
trigger = { currentLanguage
|
shouldFitContainer = { true }
|
||||||
? t(`languages:${currentLanguage}`)
|
trigger = { currentLanguage
|
||||||
: '' }
|
? t(`languages:${currentLanguage}`)
|
||||||
triggerButtonProps = {{
|
: '' }
|
||||||
shouldFitContainer: true
|
triggerButtonProps = {{
|
||||||
}}
|
shouldFitContainer: true
|
||||||
triggerType = 'button'>
|
}}
|
||||||
<DropdownItemGroup>
|
triggerType = 'button'>
|
||||||
{ languageItems }
|
<DropdownItemGroup>
|
||||||
</DropdownItemGroup>
|
{ languageItems }
|
||||||
</DropdownMenu>
|
</DropdownItemGroup>
|
||||||
|
</DropdownMenu>
|
||||||
|
</TouchmoveHack>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue