Skip to content

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

chore: small ui adjustments

Ilian Sapundshiev7672a810cfea
diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
index 63bfffb6f..bf7c3384d 100644
--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
@@ -17,7 +17,7 @@
*/
import AppConfig from '-/AppConfig';
-import { ExpandIcon, IDIcon } from '-/components/CommonIcons';
+import { ExpandIcon, IDIcon, RemoveIcon } from '-/components/CommonIcons';
import DraggablePaper from '-/components/DraggablePaper';
import { BetaLabel, ProLabel, ProTooltip } from '-/components/HelperComponents';
import InfoIcon from '-/components/InfoIcon';
@@ -43,7 +43,6 @@ import { CommonLocation } from '-/utils/CommonLocation';
import useFirstRender from '-/utils/useFirstRender';
import CheckIcon from '@mui/icons-material/Check';
import PasswordIcon from '@mui/icons-material/Password';
-import RemoveIcon from '@mui/icons-material/RemoveCircleOutline';
import Visibility from '@mui/icons-material/Visibility';
import VisibilityOff from '@mui/icons-material/VisibilityOff';
import {
diff --git a/src/renderer/components/dialogs/components/SettingsFileTypes.tsx b/src/renderer/components/dialogs/components/SettingsFileTypes.tsx
index fd2996e7e..5693b46aa 100644
--- a/src/renderer/components/dialogs/components/SettingsFileTypes.tsx
+++ b/src/renderer/components/dialogs/components/SettingsFileTypes.tsx
@@ -17,6 +17,7 @@
*/
import AppConfig from '-/AppConfig';
+import { RemoveIcon } from '-/components/CommonIcons';
import TransparentBackground from '-/components/TransparentBackground';
import TsButton from '-/components/TsButton';
import TsIconButton from '-/components/TsIconButton';
@@ -36,7 +37,6 @@ import { dataTidFormat } from '-/services/test';
import { getUserDataDir } from '-/services/utils-io';
import { TS } from '-/tagspaces.namespace';
import useFirstRender from '-/utils/useFirstRender';
-import RemoveIcon from '@mui/icons-material/RemoveCircle';
import FormControl from '@mui/material/FormControl';
import InputAdornment from '@mui/material/InputAdornment';
import MenuItem from '@mui/material/MenuItem';
@@ -60,29 +60,11 @@ import {
const PREFIX = 'SettingsFileTypes';
const classes = {
- fileTypeColorDialog: `${PREFIX}-fileTypeColorDialog`,
- colorChooserButton: `${PREFIX}-colorChooserButton`,
fileExtRemove: `${PREFIX}-fileExtRemove`,
};
const Root = styled('div')(({ theme: any }) => ({
- [`& .${classes.fileTypeColorDialog}`]: {
- width: 60,
- padding: '0 12px 0 0',
- },
-
- [`& .${classes.colorChooserButton}`]: {
- maxWidth: 30,
- width: 30,
- border: '1px solid lightgray',
- },
-
- [`& .${classes.fileExtRemove}`]: {
- height: '38px',
- cursor: 'pointer',
- marginLeft: 10,
- padding: '0',
- },
+ [`& .${classes.fileExtRemove}`]: {},
}));
function SettingsFileTypes() {
@@ -347,8 +329,6 @@ function SettingsFileTypes() {
style={{
width: 160,
marginTop: 0,
- paddingLeft: 0,
- paddingRight: 0,
}}
error={
(isValidationInProgress.current && item.type === '') ||
@@ -369,12 +349,10 @@ function SettingsFileTypes() {
<TsButton
tooltip={t('core:colorPickerDialogTitle')}
data-tid="settingsFileTypes_openColorPicker_"
- className={classes.colorChooserButton}
style={{
+ border: '1px solid lightgray',
backgroundColor: `${item.color}`,
minWidth: 40,
- maxWidth: 40,
- cursor: 'pointer',
}}
onClick={() => {
openColorPicker(item);
@@ -391,7 +369,6 @@ function SettingsFileTypes() {
<TsIconButton
tooltip={t('removeFileType', { itemType: item.type })}
data-tid="settingsFileTypes_remove_"
- className={classes.fileExtRemove}
onClick={() => onRemoveItem(item)}
>
<RemoveIcon />