You've already forked joplin
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:
@ -48,6 +48,8 @@ const useStyles = (theme: ThemeStyle) => {
|
|||||||
gap: 8,
|
gap: 8,
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
flexWrap: 'wrap',
|
flexWrap: 'wrap',
|
||||||
|
flexShrink: 1,
|
||||||
|
flexGrow: 1,
|
||||||
},
|
},
|
||||||
modalBackground: {
|
modalBackground: {
|
||||||
paddingTop: 0,
|
paddingTop: 0,
|
||||||
|
@ -30,18 +30,15 @@ const styles = StyleSheet.create({
|
|||||||
gap: 2,
|
gap: 2,
|
||||||
},
|
},
|
||||||
mainButtonRow: {
|
mainButtonRow: {
|
||||||
flexWrap: 'nowrap',
|
flexWrap: 'wrap',
|
||||||
},
|
gap: 6,
|
||||||
spacer: {
|
|
||||||
flexShrink: 1,
|
|
||||||
flexGrow: 0,
|
|
||||||
width: 12,
|
|
||||||
},
|
},
|
||||||
shortcutButton: {
|
shortcutButton: {
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
},
|
},
|
||||||
mainButton: {
|
mainButton: {
|
||||||
flexShrink: 1,
|
flexShrink: 1,
|
||||||
|
flexGrow: 1,
|
||||||
},
|
},
|
||||||
mainButtonLabel: {
|
mainButtonLabel: {
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
@ -85,7 +82,6 @@ const NewNoteButton: React.FC<Props> = _props => {
|
|||||||
type={ButtonType.Secondary}
|
type={ButtonType.Secondary}
|
||||||
size={ButtonSize.Larger}
|
size={ButtonSize.Larger}
|
||||||
>{_('New to-do')}</TextButton>
|
>{_('New to-do')}</TextButton>
|
||||||
<View style={styles.spacer}/>
|
|
||||||
<TextButton
|
<TextButton
|
||||||
touchableRef={newNoteRef}
|
touchableRef={newNoteRef}
|
||||||
icon='file-document-outline'
|
icon='file-document-outline'
|
||||||
|
Reference in New Issue
Block a user