Mobile: Fixes #9475: Increase space available for Notebook icon (#9877)

Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
pull/9917/head
pedr 2024-02-09 09:11:51 -03:00 committed by GitHub
parent 296d586b04
commit 92c85ca07c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -87,6 +87,7 @@ const SideMenuContentComponent = (props: Props) => {
sidebarIcon: {
fontSize: 22,
color: theme.color,
width: 26,
},
};
@ -103,7 +104,7 @@ const SideMenuContentComponent = (props: Props) => {
styles.sideButtonSelected = { ...styles.sideButton, backgroundColor: theme.selectedColor };
styles.sideButtonText = { ...styles.buttonText };
styles.emptyFolderIcon = { ...styles.sidebarIcon, marginRight: folderIconRightMargin, width: 21 };
styles.emptyFolderIcon = { ...styles.sidebarIcon, marginRight: folderIconRightMargin, width: 26 };
return StyleSheet.create(styles);
}, [props.themeId]);
@ -317,9 +318,9 @@ const SideMenuContentComponent = (props: Props) => {
}
if (folderIcon.type === 1) { // FolderIconType.Emoji
return <Text style={{ fontSize: theme.fontSize, marginRight: folderIconRightMargin, width: 20 }}>{folderIcon.emoji}</Text>;
return <Text style={{ fontSize: theme.fontSize, marginRight: folderIconRightMargin, width: 27 }}>{folderIcon.emoji}</Text>;
} else if (folderIcon.type === 2) { // FolderIconType.DataUrl
return <Image style={{ width: 20, height: 20, marginRight: folderIconRightMargin, resizeMode: 'contain' }} source={{ uri: folderIcon.dataUrl }}/>;
return <Image style={{ width: 27, height: 20, marginRight: folderIconRightMargin, resizeMode: 'contain' }} source={{ uri: folderIcon.dataUrl }}/>;
} else {
throw new Error(`Unsupported folder icon type: ${folderIcon.type}`);
}