1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Mobile: Increase space available for revisions dropdown (#12379)

This commit is contained in:
Henry Heino
2025-06-06 02:21:56 -07:00
committed by GitHub
parent 591a56e510
commit 8e8ab3bd80

View File

@@ -152,6 +152,13 @@ const NoteRevisionViewer: React.FC<Props> = props => {
const styles = useStyles(props.themeId);
const dropdownLabelText = _('Revision:');
const restoreButton = (
<PrimaryButton
onPress={onRestore}
disabled={restoring || !note}
>{restoreButtonTitle}</PrimaryButton>
);
return <View style={styles.root}>
<ScreenHeader title={_('Note history')} />
<View style={styles.controls}>
@@ -165,11 +172,11 @@ const NoteRevisionViewer: React.FC<Props> = props => {
itemStyle={styles.dropdownItemStyle}
accessibilityHint={dropdownLabelText}
defaultHeaderLabel={_('Select a revision...')}
// Hides the restore button when the dropdown is open. This
// is important on small screens where otherwise it's difficult
// to read the content of the revision dropdown.
coverableChildrenRight={restoreButton}
/>
<PrimaryButton
onPress={onRestore}
disabled={restoring || !note}
>{restoreButtonTitle}</PrimaryButton>
<IconButton
icon='help-circle-outline'
accessibilityLabel={_('Help')}