TagSpaces is an offline, open source, document manager with tagging support
small ui fixes
Ilian Sapundshiev1181cd7688c8
diff --git a/app/components/dialogs/AboutDialog.tsx b/app/components/dialogs/AboutDialog.tsxindex e4fabc1f6..95bd310b7 100644--- a/app/components/dialogs/AboutDialog.tsx+++ b/app/components/dialogs/AboutDialog.tsx@@ -104,7 +104,6 @@ const AboutDialog = (props: Props) => {fullScreen={fullScreen}keepMountedscroll="paper"- // onKeyDown={confirmFunction}><DialogTitle>{productName}</DialogTitle><DialogContent>@@ -229,11 +228,7 @@ const AboutDialog = (props: Props) => {>{i18n.t('core:thirdPartyLibs')}</Button> */}- <Button- data-tid="closeAboutDialog"- onClick={props.onClose}- color="primary"- >+ <Button data-tid="closeAboutDialog" onClick={onClose} color="primary">{i18n.t('core:ok')}</Button></DialogActions>diff --git a/app/components/dialogs/CreateDialog.tsx b/app/components/dialogs/CreateDialog.tsxindex 5b0e4d739..e9e22e0e9 100644--- a/app/components/dialogs/CreateDialog.tsx+++ b/app/components/dialogs/CreateDialog.tsx@@ -30,6 +30,7 @@ import DialogContent from '@material-ui/core/DialogContent';import DialogTitle from '@material-ui/core/DialogTitle';import Grid from '@material-ui/core/Grid';import { withStyles } from '@material-ui/core/styles';+import withMobileDialog from '@material-ui/core/withMobileDialog';import Dialog from '@material-ui/core/Dialog';// import Slide from '@material-ui/core/Slide';import i18n from '-/services/i18n';@@ -68,6 +69,7 @@ interface Props {open: boolean;classes: any;selectedDirectoryPath: string;+ fullScreen: boolean;chooseDirectoryPath: (path: string) => void;showNotification: (message: string, type: string, autohide: boolean) => void;reflectCreateEntry: (path: string, isFile: boolean) => void;@@ -93,7 +95,8 @@ const CreateDialog = (props: Props) => {selectedDirectoryPath,showNotification,open,- onClose+ onClose,+ fullScreen} = props;function handleKeyPress(event: any) {@@ -235,6 +238,7 @@ const CreateDialog = (props: Props) => {<Dialogopen={open}onClose={onClose}+ // fullScreen={fullScreen}keepMountedscroll="paper"onKeyDown={event => {@@ -250,7 +254,7 @@ const CreateDialog = (props: Props) => {}}><DialogTitle style={{ alignSelf: 'center' }}>- Create new content+ {i18n.t('createNewContent')}</DialogTitle><DialogContentonKeyPress={handleKeyPress}@@ -318,7 +322,7 @@ const CreateDialog = (props: Props) => {<DialogActions style={{ alignSelf: 'center' }}><Buttondata-tid="closeKeyboardDialog"- onClick={props.onClose}+ onClick={onClose}color="primary">{i18n.t('core:close')}@@ -348,4 +352,4 @@ function mapActionCreatorsToProps(dispatch) {export default connect(mapStateToProps,mapActionCreatorsToProps-)(withStyles(styles)(CreateDialog));+)(withMobileDialog()(withStyles(styles)(CreateDialog)));diff --git a/app/containers/MainPage.tsx b/app/containers/MainPage.tsxindex dc0e43674..51634c357 100644--- a/app/containers/MainPage.tsx+++ b/app/containers/MainPage.tsx@@ -19,7 +19,6 @@import React, { Component } from 'react';import { bindActionCreators } from 'redux';import { connect } from 'react-redux';-import uuidv1 from 'uuid';import { withStyles } from '@material-ui/core/styles';import { translate } from 'react-i18next';import SplitPane from 'react-split-pane';@@ -663,7 +662,6 @@ class MainPage extends Component<Props, State> {)}{isEditTagDialogOpened && (<EditEntryTagDialogAsync- key={uuidv1()}open={isEditTagDialogOpened}onClose={toggleEditTagDialog}/>@@ -684,7 +682,6 @@ class MainPage extends Component<Props, State> {selectedDirectoryPath={directoryPath}/><CreateFileDialog- key={uuidv1()}open={isCreateFileDialogOpened}selectedDirectoryPath={this.state.selectedDirectoryPath || directoryPathdiff --git a/app/locales/en/core.json b/app/locales/en/core.jsonindex db9a91b73..628367a6d 100644--- a/app/locales/en/core.json+++ b/app/locales/en/core.json@@ -231,6 +231,7 @@"searchSubFolder": "Search in subfolders","file": "File","newFileNote": "New File / Note",+ "createNewContent": "Create New Content","createTextFile": "Create Text File","createTextFileTitle": "Press 'T' to create a simple text file","createMarkdown": "Create Markdown File",