TagSpaces is an offline, open source, document manager with tagging support
chore: small ui adjustments
Ilian Sapundshiev5d7631156c40
diff --git a/src/renderer/components/dialogs/CreateDirectoryDialog.tsx b/src/renderer/components/dialogs/CreateDirectoryDialog.tsxindex 99f5557f1..889d0b394 100644--- a/src/renderer/components/dialogs/CreateDirectoryDialog.tsx+++ b/src/renderer/components/dialogs/CreateDirectoryDialog.tsx@@ -16,7 +16,6 @@**/-import React, { useReducer, useRef, useState } from 'react';import DraggablePaper from '-/components/DraggablePaper';import TsButton from '-/components/TsButton';import TsIconButton from '-/components/TsIconButton';@@ -43,6 +42,7 @@ import {} from '@mui/material';import { styled, useTheme } from '@mui/material/styles';import { joinPaths } from '@tagspaces/tagspaces-common/paths';+import React, { useReducer, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';const FolderColorTextField = styled(TsTextField)(({ theme }) => ({@@ -204,7 +204,7 @@ function CreateDirectoryDialog(props: Props) {actionSlot={okButton}/><DialogContent>- <FormControl fullWidth={true} error={inputError}>+ <FormControl fullWidth error={inputError}><TsTextFielderror={inputError}autoFocus@@ -228,10 +228,9 @@ function CreateDirectoryDialog(props: Props) {<FormHelperText>{t('core:directoryNameHelp')}</FormHelperText>)}</FormControl>- <FormControl>+ <FormControl fullWidth><FolderColorTextFielddata-tid="folderColorTID"- fullWidthlabel={t('backgroundColor')}retrieveValue={() => backgroundColor.current}value={' '}diff --git a/src/renderer/components/dialogs/OpenLinkDialog.tsx b/src/renderer/components/dialogs/OpenLinkDialog.tsxindex f1ad9336c..9834e94e1 100644--- a/src/renderer/components/dialogs/OpenLinkDialog.tsx+++ b/src/renderer/components/dialogs/OpenLinkDialog.tsx@@ -16,6 +16,7 @@**/+import DraggablePaper from '-/components/DraggablePaper';import InfoIcon from '-/components/InfoIcon';import TsButton from '-/components/TsButton';import TsTextField from '-/components/TsTextField';@@ -26,6 +27,7 @@ import Dialog from '@mui/material/Dialog';import DialogContent from '@mui/material/DialogContent';import FormControl from '@mui/material/FormControl';import InputAdornment from '@mui/material/InputAdornment';+import Paper from '@mui/material/Paper';import { useTheme } from '@mui/material/styles';import useMediaQuery from '@mui/material/useMediaQuery';import { useEffect, useState } from 'react';@@ -106,6 +108,7 @@ function OpenLinkDialog(props: Props) {open={open}onClose={onClose}fullScreen={smallScreen}+ PaperComponent={smallScreen ? Paper : DraggablePaper}onKeyDown={(event) => {if (event.key === 'Enter' || event.keyCode === 13) {event.preventDefault();diff --git a/src/renderer/components/dialogs/components/TsDialogActions.tsx b/src/renderer/components/dialogs/components/TsDialogActions.tsxindex 83cd1d633..020e2b225 100644--- a/src/renderer/components/dialogs/components/TsDialogActions.tsx+++ b/src/renderer/components/dialogs/components/TsDialogActions.tsx@@ -34,7 +34,8 @@ function TSDialogActions(props: TSDialogActions) {<DialogActions{...props}style={{- padding: smallScreen ? '10px 20px 20px 30px' : 'inherited',+ padding: '10px 20px 20px 20px',+ // padding: smallScreen ? '10px 20px 20px 30px' : 'inherited',...style,}}>diff --git a/src/renderer/perspectives/grid/components/MainToolbar.tsx b/src/renderer/perspectives/grid/components/MainToolbar.tsxindex 23be2487c..a71b77903 100644--- a/src/renderer/perspectives/grid/components/MainToolbar.tsx+++ b/src/renderer/perspectives/grid/components/MainToolbar.tsx@@ -16,44 +16,43 @@**/-import React from 'react';-import { alpha, useTheme } from '@mui/material/styles';-import { useSelector } from 'react-redux';-import { saveAs } from 'file-saver';-import { Toolbar, Box, Divider } from '@mui/material/';-import TsIconButton from '-/components/TsIconButton';-import SortingIcon from '@mui/icons-material/SwapVerticalCircle';-import ShareIcon from '@mui/icons-material/Share';-import DragOnIcon from '@mui/icons-material/CopyAllTwoTone';-import DragOffIcon from '@mui/icons-material/CopyAll';+import AppConfig from '-/AppConfig';import {- SelectedIcon,- UnSelectedIcon,- DownloadIcon,- TagIcon,+ AIIcon,DeleteIcon,- ParentFolderIcon,+ DownloadIcon,FolderPropertiesIcon,+ ParentFolderIcon,PerspectiveSettingsIcon,- AIIcon,+ SelectedIcon,+ TagIcon,+ UnSelectedIcon,} from '-/components/CommonIcons';-import CopyIcon from '@mui/icons-material/FileCopy';-import ExportIcon from '@mui/icons-material/AssignmentReturn';-import AppConfig from '-/AppConfig';-import { Pro } from '-/pro';import { ProTooltip } from '-/components/HelperComponents';+import TsIconButton from '-/components/TsIconButton';import ZoomComponent from '-/components/ZoomComponent';-import { getKeyBindingObject } from '-/reducers/settings';-import { useTranslation } from 'react-i18next';-import { useOpenedEntryContext } from '-/hooks/useOpenedEntryContext';-import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';+import { useAiGenerationDialogContext } from '-/components/dialogs/hooks/useAiGenerationDialogContext';+import { useDeleteMultipleEntriesDialogContext } from '-/components/dialogs/hooks/useDeleteMultipleEntriesDialogContext';+import { TabNames } from '-/hooks/EntryPropsTabsContextProvider';import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';-import { useSelectedEntriesContext } from '-/hooks/useSelectedEntriesContext';+import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';+import { useOpenedEntryContext } from '-/hooks/useOpenedEntryContext';import { usePerspectiveSettingsContext } from '-/hooks/usePerspectiveSettingsContext';-import { useDeleteMultipleEntriesDialogContext } from '-/components/dialogs/hooks/useDeleteMultipleEntriesDialogContext';+import { useSelectedEntriesContext } from '-/hooks/useSelectedEntriesContext';import { useSortedDirContext } from '-/perspectives/grid/hooks/useSortedDirContext';-import { TabNames } from '-/hooks/EntryPropsTabsContextProvider';-import { useAiGenerationDialogContext } from '-/components/dialogs/hooks/useAiGenerationDialogContext';+import { Pro } from '-/pro';+import { getKeyBindingObject } from '-/reducers/settings';+import ExportIcon from '@mui/icons-material/AssignmentReturn';+import DragOffIcon from '@mui/icons-material/CopyAll';+import DragOnIcon from '@mui/icons-material/CopyAllTwoTone';+import CopyIcon from '@mui/icons-material/FileCopy';+import ShareIcon from '@mui/icons-material/Share';+import SortingIcon from '@mui/icons-material/SwapVerticalCircle';+import { Box, Divider, Toolbar } from '@mui/material/';+import { alpha, useTheme } from '@mui/material/styles';+import { saveAs } from 'file-saver';+import { useTranslation } from 'react-i18next';+import { useSelector } from 'react-redux';interface Props {prefixDataTID?: string;@@ -173,7 +172,7 @@ function MainToolbar(props: Props) {><FolderPropertiesIcon /></TsIconButton>- <Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1 }} />+ <Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1.5 }} /><Box sx={{ display: selectedEntries.length < 1 ? 'none' : 'flex' }}>{!readOnlyMode && (<TsIconButton@@ -262,7 +261,7 @@ function MainToolbar(props: Props) {<ExportIcon /></TsIconButton>)}- <Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1 }} />+ <Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1.5 }} /><Box sx={{ display: { xs: 'none', sm: 'flex' } }}><ZoomComponent preview={false} /><Divider flexItem orientation="vertical" sx={{ mx: 0.5, my: 1 }} />