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

Mobile: New note menu: Force quick action shortcuts to have the same size (#12195)

This commit is contained in:
Henry Heino
2025-05-01 08:20:30 -07:00
committed by GitHub
parent 511645b1a5
commit e58e03c3d2
2 changed files with 7 additions and 1 deletions

View File

@@ -57,7 +57,11 @@ const LabelledIconButton: React.FC<Props> = ({ title, icon, style, themeId, ...o
> >
<View style={styles.buttonContent}> <View style={styles.buttonContent}>
<Icon style={styles.icon} accessibilityLabel={null} name={icon}/> <Icon style={styles.icon} accessibilityLabel={null} name={icon}/>
<Text variant='labelMedium'>{title}</Text> <Text
variant='labelMedium'
ellipsizeMode='tail'
numberOfLines={1}
>{title}</Text>
</View> </View>
</TouchableRipple>; </TouchableRipple>;
}; };

View File

@@ -35,6 +35,8 @@ const styles = StyleSheet.create({
}, },
shortcutButton: { shortcutButton: {
flexGrow: 1, flexGrow: 1,
flexShrink: 1,
flexBasis: 0,
}, },
mainButton: { mainButton: {
flexShrink: 1, flexShrink: 1,