Skip to content

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

chore: small ui fixes in folder container header

Ilian Sapundshiev1020c36757d6
diff --git a/src/renderer/components/PathBreadcrumbs.tsx b/src/renderer/components/PathBreadcrumbs.tsx
index bc7645018..fe3f923dc 100644
--- a/src/renderer/components/PathBreadcrumbs.tsx
+++ b/src/renderer/components/PathBreadcrumbs.tsx
@@ -46,7 +46,7 @@ const StyledBreadcrumb = styled(Chip)(({ theme }) => {
return {
backgroundColor,
borderRadius: AppConfig.defaultCSSRadius,
- height: theme.spacing(4),
+ height: 34, // theme.spacing(4),
color: theme.palette.text.primary,
fontWeight: theme.typography.fontWeightRegular,
'&:hover, &:focus': {
@@ -68,6 +68,10 @@ const StyledBreadcrumb = styled(Chip)(({ theme }) => {
const StyledBreadcrumbs = styled(Breadcrumbs)(({ theme }) => {
return {
+ overflowX: 'scroll',
+ marginTop: '8px',
+ // @ts-ignore
+ WebkitAppRegion: 'no-drag',
'& ol': {
flexWrap: 'nowrap',
},
@@ -206,12 +210,6 @@ function PathBreadcrumbs(props: Props) {
return (
<>
<StyledBreadcrumbs
- style={{
- overflowX: 'scroll',
- marginTop: 8,
- // @ts-ignore
- WebkitAppRegion: 'no-drag',
- }}
maxItems={isDesktopMode ? 2 : 1}
itemsAfterCollapse={isDesktopMode ? 1 : 1}
itemsBeforeCollapse={isDesktopMode ? 1 : 0}
@@ -219,8 +217,8 @@ function PathBreadcrumbs(props: Props) {
separator={
<span
style={{
- marginLeft: -4,
- marginRight: -5,
+ marginLeft: -3,
+ marginRight: -3,
}}
>
{'›'}
diff --git a/src/renderer/components/SearchAutocomplete.tsx b/src/renderer/components/SearchAutocomplete.tsx
index 114238fca..84e34f8d5 100644
--- a/src/renderer/components/SearchAutocomplete.tsx
+++ b/src/renderer/components/SearchAutocomplete.tsx
@@ -38,6 +38,8 @@ import TsTextField from '-/components/TsTextField';
import { useBrowserHistoryContext } from '-/hooks/useBrowserHistoryContext';
import { useCurrentLocationContext } from '-/hooks/useCurrentLocationContext';
import { useDirectoryContentContext } from '-/hooks/useDirectoryContentContext';
+import { useEditedTagLibraryContext } from '-/hooks/useEditedTagLibraryContext';
+import { useHistoryContext } from '-/hooks/useHistoryContext';
import { useLocationIndexContext } from '-/hooks/useLocationIndexContext';
import { useOpenedEntryContext } from '-/hooks/useOpenedEntryContext';
import { useSavedSearchesContext } from '-/hooks/useSavedSearchesContext';
@@ -49,7 +51,6 @@ import {
isDesktopMode,
} from '-/reducers/settings';
import { haveSearchFilters } from '-/services/search';
-import { getTagLibrary } from '-/services/taglibrary-utils';
import { dataTidFormat } from '-/services/test';
import { removePrefix } from '-/services/utils-io';
import { TS } from '-/tagspaces.namespace';
@@ -72,8 +73,6 @@ import React, {
import { useTranslation } from 'react-i18next';
import { useDispatch, useSelector } from 'react-redux';
import { actions as AppActions, AppDispatch } from '../reducers/app';
-import { useHistoryContext } from '-/hooks/useHistoryContext';
-import { useEditedTagLibraryContext } from '-/hooks/useEditedTagLibraryContext';
interface Props {
style?: any;
@@ -81,15 +80,6 @@ interface Props {
setAnchorSearch: (el: HTMLButtonElement) => void;
}
-/*const useStyles = makeStyles(theme => ({
- customWidth: {
- maxWidth: 550
- },
- noMaxWidth: {
- maxWidth: 'none'
- }
-}));*/
-
function SearchAutocomplete(props: Props) {
const { t } = useTranslation();
const desktopMode = useSelector(isDesktopMode);
@@ -1262,10 +1252,11 @@ function SearchAutocomplete(props: Props) {
<style>
{`
#searchAutocompleteComp .MuiAutocomplete-root .MuiInputBase-root {
- padding: 1px 15px 0 5px !important;
+ padding: 4px 5px 1px 6px !important;
}
#searchAutocompleteComp .MuiTextField-root {
overflow-x: hidden !important;
+ margin-bottom: 0;
}
.MuiAutocomplete-popper {
min-width: 350px;
@@ -1497,7 +1488,6 @@ function SearchAutocomplete(props: Props) {
style={{
marginRight: 10,
marginLeft: 10,
- marginTop: 3,
}}
onClick={clickSearchButton}
>