1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Mobile: Allow new note and new to-do buttons to wrap (#12163)

Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
Henry Heino
2025-04-29 05:54:58 -07:00
committed by GitHub
parent d85394681d
commit 13a572efa9
2 changed files with 5 additions and 7 deletions

View File

@ -48,6 +48,8 @@ const useStyles = (theme: ThemeStyle) => {
gap: 8,
flexDirection: 'row',
flexWrap: 'wrap',
flexShrink: 1,
flexGrow: 1,
},
modalBackground: {
paddingTop: 0,

View File

@ -30,18 +30,15 @@ const styles = StyleSheet.create({
gap: 2,
},
mainButtonRow: {
flexWrap: 'nowrap',
},
spacer: {
flexShrink: 1,
flexGrow: 0,
width: 12,
flexWrap: 'wrap',
gap: 6,
},
shortcutButton: {
flexGrow: 1,
},
mainButton: {
flexShrink: 1,
flexGrow: 1,
},
mainButtonLabel: {
fontSize: 16,
@ -85,7 +82,6 @@ const NewNoteButton: React.FC<Props> = _props => {
type={ButtonType.Secondary}
size={ButtonSize.Larger}
>{_('New to-do')}</TextButton>
<View style={styles.spacer}/>
<TextButton
touchableRef={newNoteRef}
icon='file-document-outline'