Skip to content

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

fix: separator between content and entry properties

Ilian Sapundshievbafa06a499a9
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index d2950b2c5..513de702b 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -825,6 +825,7 @@ function EntryContainer() {
const tabsComponent = (marginRight = undefined) => (
<EntryContainerTabs
isEditable={isEditable}
+ isPanelOpened={isPanelOpened}
openedFile={openedFile}
openPanel={openPanel}
toggleProperties={toggleProperties}
@@ -956,7 +957,7 @@ function EntryContainer() {
fileViewerContainer={fileViewerContainer}
toggleFullScreen={toggleFullScreen}
eventID={eventID.current}
- height={tabIndex !== undefined ? '100%' : 'calc(100% - 98px)'}
+ height={tabIndex !== undefined ? '100%' : 'calc(100% - 100px)'}
/>
)}
</div>
diff --git a/app/components/EntryContainerTabs.tsx b/app/components/EntryContainerTabs.tsx
index 08f2bc850..89ab367cb 100644
--- a/app/components/EntryContainerTabs.tsx
+++ b/app/components/EntryContainerTabs.tsx
@@ -17,7 +17,7 @@
*/
import React, { useRef } from 'react';
-import { styled } from '@mui/material/styles';
+import { styled, useTheme } from '@mui/material/styles';
import { useSelector, useDispatch } from 'react-redux';
import Tabs from '@mui/material/Tabs';
import Tab from '@mui/material/Tab';
@@ -85,7 +85,8 @@ const StyledTab = styled((props: StyledTabProps) => (
fontWeight: theme.typography.fontWeightRegular,
fontSize: theme.typography.pxToRem(15),
marginRight: theme.spacing(1),
- minHeight: 45
+ minHeight: 53,
+ maxHeight: 53
}));
function a11yProps(index: number) {
@@ -100,6 +101,7 @@ interface EntryContainerTabsProps {
openPanel: () => void;
toggleProperties: () => void;
isEditable: boolean;
+ isPanelOpened: boolean;
marginRight: string;
}
@@ -115,11 +117,12 @@ function EntryContainerTabs(props: EntryContainerTabsProps) {
openPanel,
toggleProperties,
marginRight,
- isEditable
+ isEditable,
+ isPanelOpened
} = props;
const { t } = useTranslation();
-
+ const theme = useTheme();
const tabIndex = useSelector(getEntryContainerTab);
const readOnlyMode = useSelector(isReadOnlyMode);
const tileServer = useSelector(getMapTileServer);
@@ -182,7 +185,12 @@ function EntryContainerTabs(props: EntryContainerTabsProps) {
height: '100%',
display: 'flex',
flexDirection: 'column',
- overflow: 'hidden'
+ overflow: 'hidden',
+ borderBottom:
+ openedFile.isFile && !isPanelOpened
+ ? '1px solid ' + theme.palette.divider
+ : 'none',
+ minHeight: 53
}}
>
<Box sx={{ ...(marginRight && { marginRight }) }}>