Skip to content

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

chore: reenabling icon in buttons

Ilian Sapundshievcda6e5f1f0a7
diff --git a/src/renderer/components/MobileNavigation.tsx b/src/renderer/components/MobileNavigation.tsx
index eeed3db42..b5305aa5a 100644
--- a/src/renderer/components/MobileNavigation.tsx
+++ b/src/renderer/components/MobileNavigation.tsx
@@ -150,13 +150,21 @@ function MobileNavigation(props: Props) {
>
<Box>
<CustomLogo />
- <Box style={{ width: '100%', textAlign: 'center' }}>
+ <Box
+ style={{
+ width: '100%',
+ justifyContent: 'center',
+ display: 'flex',
+ alignItems: 'center',
+ }}
+ >
<ButtonGroup
ref={anchorRef}
aria-label="split button"
style={{
textAlign: 'center',
- marginRight: AppConfig.defaultSpaceBetweenButtons,
+ marginLeft: 5,
+ marginRight: 5,
}}
>
<TsButton
@@ -169,7 +177,6 @@ function MobileNavigation(props: Props) {
onClick={handleToggle}
startIcon={<CreateFileIcon />}
style={{
- marginLeft: 40,
borderRadius: 'unset',
borderTopLeftRadius: AppConfig.defaultCSSRadius,
borderBottomLeftRadius: AppConfig.defaultCSSRadius,
diff --git a/src/renderer/components/TsButton.tsx b/src/renderer/components/TsButton.tsx
index 8db4d14ce..b7caa2095 100644
--- a/src/renderer/components/TsButton.tsx
+++ b/src/renderer/components/TsButton.tsx
@@ -68,6 +68,7 @@ function TsButton(props: TSButtonProps) {
button = (
<Button
size={desktopMode ? 'small' : 'medium'}
+ {...(startIcon && { startIcon: startIcon })}
variant="outlined" // text outlined contained
{...rest}
style={{