Skip to content

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

chore: added hover effect to taggroup's title

Ilian Sapundshiev8ba79b4ce98e
diff --git a/src/renderer/components/LocationManager.tsx b/src/renderer/components/LocationManager.tsx
index c21ce847b..2db25442b 100644
--- a/src/renderer/components/LocationManager.tsx
+++ b/src/renderer/components/LocationManager.tsx
@@ -182,7 +182,7 @@ function LocationManager(props: Props) {
{...prov.dragHandleProps}
>
<LocationView
- key={location.uuid}
+ key={location.uuid + index}
workspace={getWorkSpace(location)}
location={{
isFile: false,
diff --git a/src/renderer/components/TagGroupTitleDnD.tsx b/src/renderer/components/TagGroupTitleDnD.tsx
index 0d9e11793..f38d9dd9f 100644
--- a/src/renderer/components/TagGroupTitleDnD.tsx
+++ b/src/renderer/components/TagGroupTitleDnD.tsx
@@ -29,7 +29,7 @@ import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { Pro } from '-/pro';
import { TS } from '-/tagspaces.namespace';
import { CommonLocation } from '-/utils/CommonLocation';
-import { Box } from '@mui/material';
+import { Box, emphasize, useTheme } from '@mui/material';
import Grid from '@mui/material/Grid';
import Typography from '@mui/material/Typography';
import { useContext, useRef } from 'react';
@@ -61,6 +61,7 @@ function TagGroupTitleDnD(props: Props) {
} = props;
const { findLocation } = useCurrentLocationContext();
const tagGroupRef = useRef<HTMLSpanElement>(null);
+ const theme = useTheme();
const { t } = useTranslation();
const workSpacesContext = Pro?.contextProviders?.WorkSpacesContext
? useContext<TS.WorkSpacesContextData>(
@@ -151,6 +152,9 @@ function TagGroupTitleDnD(props: Props) {
padding: 0,
height: '100%',
borderRadius: AppConfig.defaultCSSRadius,
+ '&:hover, &:focus': {
+ backgroundColor: emphasize(theme.palette.background.paper, 0.06),
+ },
}}
>
<Grid
@@ -158,7 +162,7 @@ function TagGroupTitleDnD(props: Props) {
direction="row"
alignItems="stretch"
alignContent="center"
- sx={{ flexWrap: 'nowrap' }}
+ sx={{ flexWrap: 'nowrap', cursor: 'grab' }}
>
<Grid size={2} sx={{ maxWidth: 40 }}>
<TsIconButton