Skip to content

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

chore: improving dnd animation

Ilian Sapundshievceb594ab58f4
diff --git a/package-lock.json b/package-lock.json
index a4b0587af..b3b1b03c1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -196,7 +196,7 @@
"yarn": "please-use-npm"
},
"optionalDependencies": {
- "@tagspacespro/tagspacespro": "5.0.51-alpha.3"
+ "@tagspacespro/tagspacespro": "5.0.53"
}
},
"node_modules/@adobe/css-tools": {
@@ -13873,9 +13873,9 @@
}
},
"node_modules/@tagspacespro/tagspacespro": {
- "version": "5.0.51-alpha.3",
- "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.51-alpha.3/56f0ab8d8942e3f6338e5e45640e953de21b260a",
- "integrity": "sha512-CvZ26KsYu8i24m59BO8yJ5d129IpMlXJ31JwxBIyJOGJoWijPb63pzatoCpdfVRYU11PTHDJ8mqQ50mTmADfUw==",
+ "version": "5.0.53",
+ "resolved": "https://npm.pkg.github.com/download/@tagspacespro/tagspacespro/5.0.53/b10579b0d8d124b3c57e5a98534455fad8b85ed9",
+ "integrity": "sha512-i2CbTDDYYQBrC6Wevjj+425D6eZEAa126gkWCdAG2F0+WPj+rawMsu+mwCXSekOWLSYA0rJp432hLoE/qkGx9A==",
"license": "Proprietary",
"optional": true
},
diff --git a/src/renderer/components/MainSearchField.tsx b/src/renderer/components/MainSearchField.tsx
index d5e8fe81d..0d3e63987 100644
--- a/src/renderer/components/MainSearchField.tsx
+++ b/src/renderer/components/MainSearchField.tsx
@@ -39,10 +39,6 @@ const MainSearchField = styled(TextField)(({ theme }) => ({
theme.palette.mode === 'light'
? theme.palette.grey[200]
: theme.palette.grey[900],
- // backgroundColor: 'gray',
- // outline: '2px solid red',
- // border: 'none',
- // boxShadow: 'none'
},
// '&$focused': {
// outline: 'none',
@@ -52,9 +48,6 @@ const MainSearchField = styled(TextField)(({ theme }) => ({
backgroundColor: theme.palette.background.paper,
// boxShadow: `${alpha(theme.palette.primary.main, 0.25)} 0 0 0 0.2rem`
},
- // '&:active': {
- // backgroundColor: theme.palette.background.paper
- // }
}));
export default MainSearchField;
diff --git a/src/renderer/components/TargetFileBox.tsx b/src/renderer/components/TargetFileBox.tsx
index 10fe50680..5912786b2 100644
--- a/src/renderer/components/TargetFileBox.tsx
+++ b/src/renderer/components/TargetFileBox.tsx
@@ -18,7 +18,7 @@
import React, { ReactNode } from 'react';
import { DropTargetMonitor, useDrop } from 'react-dnd';
-import { useTheme } from '@mui/material/styles';
+import { alpha, useTheme } from '@mui/material/styles';
import { useTranslation } from 'react-i18next';
import AppConfig from '-/AppConfig';
import { useDispatch, useSelector } from 'react-redux';
@@ -150,9 +150,9 @@ function TargetFileBox(props: Props) {
minHeight: '100%',
width: '100%',
...(isActive && {
- boxShadow: 'inset 0px 2px 0 5px ' + theme.palette.primary.main,
+ boxShadow: 'inset 0px 0px 0 5px ' + theme.palette.primary.main,
borderRadius: 5,
- backgroundColor: theme.palette.primary.main,
+ backgroundColor: alpha(theme.palette.primary.main, 0.5),
}),
}}
>