Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: small improvement of the main action buttons

Ilian Sapundshievcd8452d05bd1
diff --git a/src/renderer/components/MobileNavigation.tsx b/src/renderer/components/MobileNavigation.tsx
index 8aa4cb5fd..81fe1a59d 100644
--- a/src/renderer/components/MobileNavigation.tsx
+++ b/src/renderer/components/MobileNavigation.tsx
@@ -207,7 +207,16 @@ function MobileNavigation(props: Props) {
startIcon={<CreateFileIcon />}
// endIcon={<ArrowDropDownIcon />}
>
- {t('core:createNew')}
+ <Box
+ style={{
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ overflow: 'hidden',
+ maxWidth: 100,
+ }}
+ >
+ {t('core:createNew')}
+ </Box>
</Button>
<Tooltip title={t('core:openSharingLink')}>
<Button
@@ -218,7 +227,16 @@ function MobileNavigation(props: Props) {
}}
startIcon={<OpenLinkIcon />}
>
- {t('core:openLink')}
+ <Box
+ style={{
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ overflow: 'hidden',
+ maxWidth: 100,
+ }}
+ >
+ {t('core:openLink')}
+ </Box>
</Button>
</Tooltip>
</ButtonGroup>